/* ============ DESIGN TOKENS ============ */
:root {
  --sky: #4FC3F7;
  --mint: #A5D6A7;
  --cream: #FFF8E1;
  --gray: #FAFAFA;
  --deep: #455A64;

  --bg: var(--gray);
  --surface: #ffffff;
  --fg: var(--deep);
  --muted: #6b7a82;
  --border: #e6ebee;

  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 24px -12px rgba(69, 90, 100, 0.15);
  --shadow-md: 0 18px 50px -20px rgba(79, 195, 247, 0.35);
  --shadow-lg: 0 30px 80px -30px rgba(79, 195, 247, 0.5);

  --grad: linear-gradient(135deg, var(--sky), var(--mint));
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: 100px 0; position: relative; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.max-w-2xl { max-width: 640px; }
.max-w-sm { max-width: 360px; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px; }
.col-5 { grid-column: span 12; }
.col-7 { grid-column: span 12; }
@media (min-width: 960px) {
  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
}

/* ============ TYPOGRAPHY ============ */
.display, .h2, .h3, .h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; font-weight: 600; }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.h3 { font-size: 1.4rem; }
.h4 { font-size: 1.4rem; }
.kicker { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); margin: 0; }
.lead { font-size: 1.1rem; color: var(--fg); margin: 24px 0 0; }
.italic { font-style: italic; color: var(--muted); }
.muted { color: var(--muted); margin: 16px 0 0; }
.small { font-size: 0.85rem; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500;
  transition: transform .25s ease, box-shadow .25s ease, gap .25s ease, opacity .25s ease;
}
.btn:hover { gap: 12px; }
.btn--dark { background: var(--deep); color: #fff; }
.btn--dark:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); border: 1px solid var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--sky); }

/* ============ DARK SECTION OVERRIDES ============ */
.section--dark {
  background: #1a2228; /* Dark background for the section */
  color: #f3f7f9; /* Light text for the section */
  --bg: #1a2228; /* Override for form inputs etc. */
  --surface: transparent; /* Cards within dark section will be transparent */
  --fg: #f3f7f9;
  --muted: #a3b1b9;
  --border: rgba(255,255,255,0.08);
  --shadow-sm: 0 6px 24px -12px rgba(0,0,0,0.6);
}
.section--dark .btn--dark { background: var(--sky); color: var(--deep); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.icon-btn:hover { transform: scale(1.06); border-color: var(--sky); }
.burger { display: block; width: 16px; height: 2px; background: var(--fg); border-radius: 2px; }

/* ============ NAVBAR ============ */
.nav { 
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 18px 0; 
  transition: padding .4s ease, background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease; 
}
.nav.scrolled { 
  padding: 0; 
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; border-radius: 999px;
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
  border: 1px solid transparent;
}
.nav.scrolled .nav__inner {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
  border-radius: 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--grad); color: #fff;
}
.nav__links { display: none; gap: 28px; }
@media (min-width: 960px) { .nav__links { display: flex; } }
.nav__links a {
  font-size: 0.9rem; color: var(--muted);
  position: relative; transition: color .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--sky); transition: width .3s ease;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.hide-sm { display: none; } @media (min-width: 640px) { .hide-sm { display: inline-flex; } }
.show-md { display: inline-grid; } @media (min-width: 960px) { .show-md { display: none; } }

#mobileMenu {
  margin-top: 8px; padding: 10px;
  border-radius: 18px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  display: none;
}
#mobileMenu.open { display: block; animation: fadeUp .3s ease; }
#mobileMenu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; }
#mobileMenu a:hover { background: var(--bg); }

/* ============ HERO ============ */
.hero { 
  position: relative; padding: 160px 0 100px; overflow: hidden; 
  border-radius: 0; 
  background: #1a2228; 
  color: #f3f7f9; 
}

/* Cards within a dark section should be transparent */
.section--dark .card {
  background: transparent;
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 7fr 5fr; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--mint); }

.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  margin: 48px 0 0; padding-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid var(--border); max-width: 520px;
}
.stats dt { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.stats dd { margin: 4px 0 0; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

/* Hero portrait */
.portrait {
  position: relative; aspect-ratio: 4/5; max-width: 440px; margin: 0 auto;
  padding: 12px; border-radius: 36px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 28px;
}
.badge {
  position: absolute; padding: 14px 18px; border-radius: 18px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
}
.badge--bl { bottom: -22px; left: -22px; }
.badge--tr { top: -22px; right: -22px; }
.badge__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--mint); color: var(--deep); }
.badge__label { margin: 0; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.badge__title { margin: 2px 0 0; font-size: 0.9rem; font-weight: 500; }

/* Blobs */
.blob { position: absolute; border-radius: 999px; filter: blur(80px); opacity: 0.35; z-index: -1; animation: blob 16s ease-in-out infinite; }
.blob--1 { width: 420px; height: 420px; top: -80px; left: -100px; background: var(--sky); }
.blob--2 { width: 480px; height: 480px; top: 120px; right: -120px; background: var(--mint); animation-delay: 2s; }
.blob--3 { width: 320px; height: 320px; bottom: -80px; left: 30%; background: var(--cream); opacity: 0.6; }

/* ============ TINTED SECTIONS ============ */
.tinted-mint { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--mint) 18%, transparent), transparent); }
.tinted-sky { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--sky) 12%, transparent), transparent); }
.tinted-cream { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--cream) 70%, transparent), transparent); }

/* ============ ABOUT BADGES ============ */
.badges { margin-top: 36px; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.badge-card {
  padding: 18px; border-radius: 18px;
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  transition: transform .3s ease;
}
.badge-card:hover { transform: translateY(-4px); }
.badge-card .muted { margin-top: 4px; font-size: 0.85rem; }

/* ============ SKILLS ============ */
.skills-grid { margin-top: 56px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
.skill {
  padding: 22px; border-radius: 18px; /* Keep padding and border-radius */
  background: transparent; /* Make skill cards transparent */
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}
.skill__head { display: flex; justify-content: space-between; align-items: baseline; }
.skill__name { font-weight: 500; }
.skill__pct { font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); }
.skill__bar { margin-top: 12px; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.skill__fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.2s ease; }

/* ============ SERVICE CARDS ============ */
.cards { margin-top: 56px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards--2x2 { grid-template-columns: 1fr 1fr; } /* Ensure this rule is active for 2x2 */
.card {
  position: relative; padding: 28px; border-radius: 24px;
  background: transparent; border: 1px solid var(--border); /* Make cards transparent by default */
  transition: transform .5s ease, border-color .5s ease, box-shadow .5s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 999px;
  background: var(--grad); opacity: 0; filter: blur(40px);
  transition: opacity .5s ease;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--sky) 40%, transparent); box-shadow: var(--shadow-md); }
.card:hover::after { opacity: 0.6; }
.card__icon {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--sky) 30%, transparent), color-mix(in oklab, var(--mint) 30%, transparent));
}
.card .h3 { margin-top: 22px; }

/* ============ PROJECTS ============ */
.projects { margin-top: 56px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .projects { grid-template-columns: 1fr 1fr; } }
.project {
  display: block; padding: 6px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s ease, box-shadow .4s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project__cover {
  position: relative; height: 380px; border-radius: 22px; overflow: hidden;
}
.project__cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%);
}
.g1 { background: url('d.jpg'); 
background-size: cover; background-position: center; background-repeat: no-repeat; }
.g2 { background: url('cedi.jpg');; 
background-size: cover; background-position: center; background-repeat: no-repeat; 
}
.g3 { background: url('https://scontent.facc7-1.fna.fbcdn.net/v/t39.30808-6/485760957_2454794088203081_8157104204086789805_n.jpg?stp=dst-jpg_tt6&cstp=mx1024x768&ctp=s1024x768&_nc_cat=108&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=RNMAr8kJYTkQ7kNvwE0SO7U&_nc_oc=Ado9JbHIghHknHy3RDV6LHlIwkW5uM7bZd5H3L52u4PsqfPDi4XZSC3OM-7gp_i6SJk&_nc_zt=23&_nc_ht=scontent.facc7-1.fna&_nc_gid=49d70qDn1kaGMLYwpnWk9g&_nc_ss=7b289&oh=00_Af-t0SVPf2war0UD9_L0ZIjXsSoi6rAqwjCZRIAC3iPu3g&oe=6A2F3B1D'); }
.g4 { background: url('DAN.jpg');
background-size: cover; background-position: center; background-repeat: no-repeat; }
.chip--on {
  position: absolute; left: 18px; top: 18px; z-index: 1;
  background: rgba(255,255,255,0.7); color: var(--deep);
  backdrop-filter: blur(8px);
}
.project__body { padding: 22px; }
.link { display: inline-block; margin-top: 14px; color: var(--sky); font-weight: 500; font-size: 0.9rem; }

/* ============ GALLERY ============ */
.gallery-grid {
  margin-top: 56px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .4s ease, box-shadow .4s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.gallery-item.tall img {
  aspect-ratio: 3/4;
}
.gallery-item.wide img {
  aspect-ratio: 16/9;
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover figcaption {
  opacity: 1;
}

/* ============ TIMELINE ============ */
.timeline { margin: 56px 0 0 14px; padding-left: 32px; border-left: 1px solid var(--border); }
.timeline li { position: relative; padding-bottom: 48px; }
.timeline li:last-child { padding-bottom: 0; }
.dot-mark {
  position: absolute; left: -42px; top: 4px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--bg); display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--sky);
}
.dot-mark::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--sky); }
.timeline .h3 { margin-top: 8px; }

/* ============ QUOTES ============ */
.quotes { margin-top: 56px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px; margin: 0; border-radius: 24px;
  background: color-mix(in oklab, var(--surface) 75%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.quote__mark { color: color-mix(in oklab, var(--sky) 75%, transparent); }
.quote blockquote { margin: 16px 0 0; font-size: 1.05rem; line-height: 1.55; }
.quote figcaption { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.quote figcaption strong { display: block; }
.quote figcaption span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

/* ============ CONTACT ============ */
.contact-card {
  padding: 40px;
  border-radius: 36px;
  background: var(--surface); border: 1px solid var(--border);
}
@media (min-width: 768px) { .contact-card { padding: 64px; } }
.contact-list { margin-top: 40px; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list .kicker { color: var(--muted); }
.contact-list p:not(.kicker) { margin: 2px 0 0; font-weight: 500; }
.ci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.ci--mint { background: color-mix(in oklab, var(--mint) 50%, transparent); }
.ci--sky { background: color-mix(in oklab, var(--sky) 35%, transparent); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea {
  margin-top: 8px; width: 100%; padding: 14px 16px;
  font: inherit; color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border); border-radius: 16px;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--sky) 18%, transparent);
}
.form button { margin-top: 6px; justify-self: start; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background-color: #1a2228;}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; justify-content: space-between; }
@media (min-width: 768px) { .footer__inner { flex-direction: row; } }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.footer__links a { color: var(--muted); font-size: 0.9rem; transition: color .2s ease; }
.footer__links a:hover { color: var(--fg); }
.socials { display: flex; gap: 10px; }
.socials a {
  font-size: 0.75rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  transition: border-color .2s ease, color .2s ease;
}
.socials a:hover { border-color: var(--sky); color: var(--fg); }

/* ============ ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.float { animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
