:root {
  --bg: #f7f1e8;
  --bg-2: #efe3d3;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #1f1c19;
  --muted: #6f655d;
  --border: rgba(31, 28, 25, 0.08);
  --accent: #292525;
  --accent-soft: #e6f0eb;
  --accent-strong: #1a1d1c;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-bg2: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(20px);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-radius: 20px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

body[data-theme="dark"] {
  --bg: #070707;
  --bg-2: #0a0b0b;
  --surface: rgba(15, 16, 15, 0.92);
  --surface-strong: #090909;
  --text: #f4efe8;
  --muted: #b8b0a4;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #8ed3ae;
  --accent-soft: rgba(24, 26, 25, 0.16);
  --accent-strong: #f3f8f4;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

/* ================================
   Global
================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 77, 60, 0.08), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(255, 214, 144, 0.35), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #f4eadf 100%);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 220ms ease, color 220ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(31, 77, 60, 0.08), transparent 70%);
  filter: blur(14px);
}

body::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 214, 144, 0.24), transparent 70%);
  filter: blur(10px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* ================================
   Shared Transitions
================================ */

.panel,
.project-card,
.links-list a,
.contact-form input,
.contact-form textarea,
.mobile-menu nav {
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

/* ================================
   Header
================================ */

.header {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 16px 22px;
  width: 100vw;
  margin: 0 0 24px calc(50% - 50vw);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

body[data-theme="dark"] .header {
  background: rgba(14, 20, 17, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 42px;
  color: var(--accent-strong);
  transition: color 2s ease, transform 2s ease;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body[data-theme="dark"] .brand img {
  filter: invert(1);
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.brand:hover {
  opacity: 0.9;
  transform: scale(1.5);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-transform: uppercase;
}

.desktop-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
   transition: all 0.5s ease-in-out;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-soft);
  transform: scale(1.1);
}

#clock {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ================================
   Theme Toggle
================================ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 6px 16px rgba(15, 20, 18, 0.06);
  transition: 1s all ease, background-color 1.2s ease, border-color 1.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translate(5px);
  /* transform: scaleX(1.1) ; */
  border-color: rgba(31, 77, 60, 0.2);
}

.theme-toggle__icon {
  display: block;
}

.theme-toggle__track {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 20px;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.theme-toggle__thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(0);
  transition: transform 1.2s ease, background-color 1.2s ease;
}

body[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(14px);
}

.theme-toggle__text {
  font-size: 0.92rem;
  font-weight: 600;
}

/* ================================
   Hero
================================ */

.hero {
  display: grid;
  align-items: center;
  min-height: 78vh;
  padding: 48px;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72)),
    linear-gradient(120deg, #f8efe6 0%, #f4e7dc 56%, #f3ebdf 100%);
  border: 1px solid rgba(31, 28, 25, 0.07);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

body[data-theme="dark"] .hero {
  background: var(--surface-strong);
  color: var(--text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(31, 77, 60, 0.1), transparent 22%),
    radial-gradient(circle at 10% 85%, rgba(255, 214, 144, 0.25), transparent 24%);
  pointer-events: none;
}

.hero > div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
}

.hero p {
  margin: 0 0 28px;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 0.8s ease;
}

.scroll-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Buttons
================================ */

.button,
.button-secondary {
    position: relative;   
  overflow: hidden;         
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: bolder;
  /* font-weight: 600; */
  transition: transform 1.2s ease, box-shadow 1.2s ease, background 1.2s ease;
}

.button{
  color: floralwhite;
  box-shadow: 0 10px 24px rgba(31, 77, 60, 0.16);
}
.button-secondary {
  color: rgb(14, 13, 13);
  box-shadow: 0 10px 24px rgba(31, 77, 60, 0.16);
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);  
  z-index: -2;              
}
.button-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: floralwhite;  
  z-index: -2;
}

.button::before{
  content: "";
  position: absolute;
  background: floralwhite;
  height: 150px;
  width: 200px;
  top: 100%;
  left: 100%;
  z-index: -1;
  border-radius: 50%;
  background-size: contain;
  transition: all 0.7s ease;
}
.button-secondary::before{
  content: "";
  position: absolute;
  background: black;
  height: 150px;
  width: 200px;
  top: 100%;
  left: 100%;
  z-index: -1;
  border-radius: 50%;
  background-size: contain;
  transition: all 0.7s ease;
}


.button:hover::before,.button-secondary:hover::before{
  top: -30px;
  left: -30px;
}

.button:active::before,.button-secondary:active::before{
  background: var(--accent-soft);
  color: #070707;
  transition: background 0s;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  color: black;
  box-shadow: 0 14px 28px rgba(31, 77, 60, 0.2);
}

.button-secondary {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid rgba(31, 77, 60, 0.16);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
  color: floralwhite;
  background: rgba(31, 77, 60, 0.04);
}

body[data-theme="dark"] .button-secondary{
  color: var(--accent);
}

/* ================================
   Panels and Sections
================================ */

.panel {
  margin-top: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

body[data-theme="dark"] .panel {
  background: var(--surface-strong);
  color: var(--text);
}

.section-title {
  margin-bottom: 20px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.panel p,
.panel li {
  color: var(--text);
}

/* ================================
   Projects
================================ */

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(31, 28, 25, 0.06);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.03);
  transition: 180ms ease-in-out all
}

.project-card:hover{
  transform: scaleX(1.05);
}

body[data-theme="dark"] .project-card {
  background: var(--surface-strong);
  color: var(--text);
}

.project-card h3,
.project-card h4 {
  margin: 0 0 10px;
  font-family: "Manrope", "Inter", sans-serif;
  color: var(--accent-strong);
}

.project-card p,
.project-card li {
  color: var(--muted);
}

.project-card ul {
  padding-left: 18px;
  margin: 0;
}

.project-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.project-card a:hover,
.project-card a:focus-visible {
  text-decoration: underline;
}

/* ================================
   About
================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.profile-box {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-soft), #f7efe6);
  border: 1px solid rgba(31, 77, 60, 0.12);
}

.profile-visual h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.1rem;
  color: var(--accent-strong);
}

.profile-visual p {
  margin: 8px 0;
  color: var(--text);
}

/* ================================
   Standalone Pages
================================ */

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 32px;
  min-height: 360px;
  padding: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 214, 144, 0.35), transparent 28%),
    linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
}

.page-intro h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  color: var(--accent-strong);
}

.page-intro p {
  max-width: 620px;
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.image-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed rgba(31, 77, 60, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted);
  text-align: center;
  background-image: url("images/chidia.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
}
.image-slot2 {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed rgba(31, 77, 60, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted);
  text-align: center;
  background-image: url("images/chidi-and-colleagues.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.image-slot2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
}

.image-slot3 {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  padding: 24px;
  border: 1px dashed rgba(31, 77, 60, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.28);
  color: var(--muted);
  text-align: center;
  background-image: url("images/chidi_logo-nobg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.image-slot3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 32px;
}

.story-grid h2,
.page-panel h2 {
  margin-top: 0;
  font-family: "Manrope", "Inter", sans-serif;
  color: var(--accent-strong);
}

.quote-block {
  margin: 0;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal {
  min-height: 150px;
  padding: 20px;
  border-top: 3px solid var(--accent);
  background: var(--surface-strong);
}

.signal strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-family: "Manrope", "Inter", sans-serif;
}

.signal span {
  color: var(--muted);
  font-size: 0.94rem;
}

.project-showcase {
  display: grid;
  gap: 28px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.case-study:nth-child(even) .case-study__visual {
  order: 2;
}

.case-study__visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--accent-soft);
  background-position: center;
  background-size: cover;
}

.case-study__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.case-study__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.case-study__meta li {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

body[data-theme="dark"] .page-intro {
  background: linear-gradient(135deg, var(--surface-strong) 0%, rgba(38, 74, 57, 0.85) 100%);
}


body[data-theme="dark"] .signal,
body[data-theme="dark"] .case-study {
  border-color: var(--border);
}

/* ================================
   Skills
================================ */

.grid {
  display: grid;
  gap: 24px;
}

.skills-list {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  animation: skills-marquee 26s linear infinite;
}

.skills-list:hover {
  animation-play-state: paused;
}

.skills-list li {
  flex: 0 0 auto;
}

@keyframes skills-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 5px));
  }
}

#skills .grid > div {
  overflow: hidden;
}

.skill-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  border: 1px solid rgba(31, 77, 60, 0.08);
}

/* =============================
    Work and Volunteering
============================= */
#nacos{
  position: relative;     
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(12, 10, 10);               
  font-weight: bold;
  overflow: hidden;
}

#nacos::before{
  content: "";                
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;  
  background-image: url(/images/nacos.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.08;
  transition: 0.3s all ease-in-out;
}
#nacos:hover::before{
opacity: 0.3;
}
#aibanc{
  position: relative;     
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(12, 10, 10);               
  font-weight: bold;
  overflow: hidden;
}

#aibanc::before{
  content: "";                
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;  
  background-image: url(/images/aibanc2.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.08;
  transition: 0.3s all ease-in-out;
}
#aibanc:hover::before{
opacity: 0.3;
}
#pleasant-land{
  position: relative;     
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(12, 10, 10);               
  font-weight: bold;
  overflow: hidden;
}

#pleasant-land::before{
  content: "";                
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;  
  background-image: url(/images/pleasant-land.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.08;
  transition: 0.3s all ease-in-out;
}
#pleasant-land:hover::before{
opacity: 0.3;
}


/* ================================
   Links
================================ */
#linkedin,
#github,
#chidi,
#cv-view,
#cv-download, #cv-download2 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: rgb(12, 10, 10);
    overflow: hidden;
    isolation: isolate;
    border-radius: 20px;
  }
  
#linkedin::before,
#github::before,
#chidi::before,
#cv-view::before,
#cv-download::before, #cv-download2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    
    
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.2;
    transition: opacity 0.3s ease-in-out;
}

#linkedin::before {
    background-image: url("/images/linkedin.webp");
    background-size: cover;
}

#github::before {
    background-image: url("/images/github.webp");
    background-size: cover;
}

#chidi::before {
    background-image: url("/images/chidi_logo.png");
    background-size: cover;
}

#cv-view::before {
    background-image: url("/images/view_cv.webp");
    background-size: cover;
}

#cv-download::before {
    background-image: url("/images/download_cv.webp");
    background-size: cover;
}
#cv-download2::before {
    background-image: url("/images/download_cv.webp");
    background-size: contain;
}

#linkedin:hover::before, #github:hover::before, #chidi:hover::before, #cv-view:hover::before, #cv-download:hover::before, #cv-download2:hover::before{
  opacity: 0.5;
}

body[data-theme="dark"] #linkedin,
body[data-theme="dark"] #github,
body[data-theme="dark"] #chidi,
body[data-theme="dark"] #cv-view,
body[data-theme="dark"] #cv-download,
body[data-theme="dark"] #cv-download2 {
  color: floralwhite;
}


.links-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}


.links-list a,.last-link a {
  display: block;
  padding: 100px 14px;
  border-radius: 14px;
  border: 2px solid rgba(31, 28, 25, 0.06);
  background: var(--surface-strong);
  transition: 0.3s all ease-in-out;
}

.last-link{ 
  text-align: center;
}
.last-link a{ 
  padding: 100px;
}


body[data-theme="dark"] .links-list a {
  background: var(--surface-strong);
  color: floralwhite;
}

body[data-theme="dark"] .last-link a {
  color: floralwhite;
}

.links-list a:hover,.last-link a:hover,
.links-list a:focus-visible {
  transform: scale(1.06);
  border-color: rgba(31, 77, 60, 0.2);
}

/* Projects */
#portfolio-website{
  background-image: url("images/anyimchidi-image.jpg");
  background-size: cover;
  transition: all 0.3s ease-in-out;
}

#portfolio-website:hover{
  background-size: 110%;
  transform: scale(1.05);
}
#task-manager{
  background-image: url("images/task-manager-image.jpg");
  background-size: 100%;
  transition: all 0.3s ease-in-out;
}
#task-manager:hover{
  background-size: 110%;
  transform: scale(1.05);
}

#beeapp{
  background-image: url("images/beeapp-image.jpg");
  background-size: cover;
  transition: all 0.3s ease-in-out;
}
#beeapp:hover{
  background-size: 110%;
  transform: scale(1.05);
}

#projects .project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 250px 22px 22px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 250px;
  overflow: hidden;
}

#projects .project-card:hover {
  background-size: 105% 250px;
}

/* ================================
   Contact Form
================================ */

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-strong);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(31, 28, 25, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 1.2s ease, box-shadow 1.2s ease;
}

body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea {
  background: var(--surface-strong);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(31, 77, 60, 0.35);
  box-shadow: 0 0 0 4px rgba(31, 77, 60, 0.08);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  margin: 0;
}

/* ================================
   Footer
================================ */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 24px 0 0;
  color: var(--muted);
  border-top: 1px solid rgba(31, 28, 25, 0.08);
}

footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--accent);
  font-weight: 600;
  transition: all 0.5s ease-in-out;
}

footer a:hover,
footer a:focus-visible {
  transform: scale(1.1);
}

/* ================================
   Gallery
================================ */

.gallery-grid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(31, 77, 60, 0.08);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
}

.gallery-grid img:hover {
  transform: scale(1.2);
}

/* ================================
   Mobile Menu
================================ */
.mobile-menu {
    display: none;
}

.mobile-menu summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--accent-strong);
    padding: 8px 12px;
    border-radius: 999px;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.mobile-menu nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #0B0F0D;;
    background: transparent;
    border: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: bolder;
    text-decoration: none;
    transition: background 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent-strong);
    transform: translateX(4px);
}


/* ================================
   Responsive
================================ */

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-container {
    padding: 16px 16px 48px;
  }

  .header {
    top: 0;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 14px 16px;
    border-radius: 0;
    gap: 8px;
  }

  .mobile-menu {
    position: relative;
    width: max-content;
    height: auto;
    z-index: 2;
    display: block;
    margin-left: auto;
  }

  .mobile-menu summary {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    background: floralwhite;
    border: 2px solid var(--glass-border);
  }

  .mobile-menu nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    gap: 6px;
    margin: 0;
    padding: 88px 32px 32px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
    background: floralwhite;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }

  body[data-theme="dark"] .mobile-menu nav {
    background: #0B0F0D;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }

  body[data-theme="dark"] .mobile-menu summary {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    background: #0B0F0D;;
    border: 2px solid var(--glass-border);
  }

  body[data-theme="dark"] .mobile-menu nav a {
    color: floralwhite;
    font-weight: bolder;
  }

  body[data-theme="dark"] .mobile-menu nav a:hover,
  body[data-theme="dark"] .mobile-menu nav a:focus-visible {
    color: var(--accent-strong);
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 32px 24px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 6.3vw, 2.6rem);
  }

  .panel {
    padding: 24px;
  }

  .page-intro,
  .story-grid,
  .case-study {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .page-intro {
    min-height: auto;
  }

  .page-intro h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .case-study:nth-child(even) .case-study__visual {
    order: 0;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .links-list {
    grid-template-columns: 1fr;
  }
}

/* ================================
   Reduced Motion
================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
