/* Layout helpers */
.container { max-width:1100px; margin:0 auto; padding:12px 16px; }

/* Header */
.site-header { background:#0f172a; color:#fff; border-bottom:1px solid rgba(255,255,255,.08); }
.site-header .container { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { color:#fff; text-decoration:none; font-weight:700; }
.nav { display:flex; gap:16px; flex-wrap:wrap; }
.nav a { color:#cbd5e1; text-decoration:none; }
.nav a:hover { color:#fff; text-decoration:underline; }
.nav a.active { color:#38bdf8; border-bottom:2px solid #38bdf8; }

/* Footer */
.site-footer { background:#0f172a; color:#cbd5e1; border-top:1px solid rgba(255,255,255,.08); padding:16px 0; }
.site-footer p { margin:0; text-align:center; }

/* Simple mobile: stack nav under brand */
@media (max-width: 720px) {
  .site-header .container { flex-direction:column; align-items:flex-start; }
  .nav { width:100%; }
}


/* HERO */
.hero { padding:72px 0; background:#0b1220; color:#fff; }
.hero .container { max-width:1100px; margin:0 auto; padding:0 16px; }
.hero__title { margin:0 0 12px; font-size:clamp(28px,6vw,48px); line-height:1.1; }
.hero__lead  { margin:0 0 20px; color:#cbd5e1; max-width:60ch; }
.hero__actions { display:flex; gap:12px; flex-wrap:wrap; }

/* Buttons */
.btn { display:inline-block; padding:10px 16px; border-radius:10px;
       border:1px solid rgba(255,255,255,.25); color:#fff; text-decoration:none; }
.btn:hover { background:rgba(255,255,255,.08); }
.btn--primary { background:#38bdf8; border-color:transparent; color:#08111f; }
.btn--primary:hover { filter:brightness(0.95); }

/* Work grid */
.work { padding: 40px 0; }
.work h1 { margin: 0 0 16px; }

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  background: #0f172a;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card h3 { margin: 12px 12px 4px; color: #fff; font-size: 18px; }
.card p  { margin: 0 12px 12px; font-size: 14px; color: #93a0b2; }

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  outline: none;
}

/* Case study */
.case { padding: 24px 0 40px; }
.cs-hero { background: #0b1220; color: #fff; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cs-meta { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; color: #93a0b2; }
.cs-meta li strong { color: #fff; margin-right: 6px; }

.prose { padding: 24px 0; }
.prose h2 { margin: 24px 0 8px; }
.prose p  { margin: 0 0 12px; max-width: 70ch; }

.gallery { padding: 12px 0 0; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); margin: 12px 0; }

.cs-nav { padding: 16px 0; }
.cs-nav a { color: #38bdf8; text-decoration: none; }
.cs-nav a:hover { text-decoration: underline; }

/* Contact form */
.contact { padding: 40px 0; }
.contact h1 { margin: 0 0 12px; }
.contact p  { color: Grey; }

.contact__form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-top: 16px;
}
.contact__form label { display: grid; gap: 6px; font-weight: 600; color: Grey; }
.contact__form input,
.contact__form select,
.contact__form textarea {
  background: #0f172a; color: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 10px 12px; outline: none;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.2);
}

/* --- Tight, flush layout polish --- */

/* 1) Kill default page margins + set page baseline */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;                        /* removes the white border around the page */
  background: #0b1220;              /* matches your hero/footer background */
  color: #e5e7eb;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  line-height: 1.5;
}

/* 2) Normalize default spacing so things feel “tight” */
h1, h2, h3, p { margin-block-start: 0; }
main { display: block; }             /* old-browser safety */

/* 3) Container polish */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* 4) Header spacing + alignment */
.site-header { background:#0f172a; border-bottom:1px solid rgba(255,255,255,.08); }
.site-header .container { height: 64px; display:flex; align-items:center; justify-content:space-between; gap:16px; }

/* 5) Hero tightening */
.hero { padding: 56px 0 64px; background:#0b1220; color:#fff; }
.hero__title { margin: 0 0 8px; font-size: clamp(28px, 6vw, 48px); line-height: 1.1; }
.hero__lead  { margin: 0 0 16px; color: #93a0b2; max-width: 60ch; }
.hero__actions { display:flex; gap:12px; flex-wrap:wrap; }

/* 6) Buttons (already had these — repeating ensures they win) */
.btn { display:inline-block; padding:10px 16px; border-radius:10px;
       border:1px solid rgba(255,255,255,.25); color:#fff; text-decoration:none; }
.btn:hover { background:rgba(255,255,255,.08); }
.btn--primary { background:#38bdf8; border-color:transparent; color:#08111f; }
.btn--primary:hover { filter:brightness(0.95); }

/* 7) Footer spacing */
.site-footer { background:#0f172a; color:#cbd5e1; border-top:1px solid rgba(255,255,255,.08); padding:16px 0; }
.site-footer p { margin: 0; text-align: center; }

/* 8) Simple mobile stack for header */
@media (max-width: 720px) {
  .site-header .container { flex-direction: column; align-items: flex-start; height: auto; padding: 12px 16px; }
  .nav { width: 100%; margin-top: 8px; }
}

/* Sticky footer */
html, body { height: 100%; }

body {
  min-height: 100vh;          /* full viewport height */
  display: flex;              /* stack header, main, footer */
  flex-direction: column;
  margin: 0;                  /* no page gap */
}

main { flex: 1; }             /* take up remaining space so footer sits at bottom */

/* Diary list */
.diary { padding: 40px 0; }
.diary h1 { margin: 0 0 16px;}
.diary__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.diary .card {
  display: block; background: #0f172a; color: #cbd5e1; text-decoration: none;
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: hidden;
}
.diary .card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.diary .card h3 { margin: 12px 12px 4px; color: #fff; font-size: 18px;  }
.diary .card .meta { margin: 0 12px 12px; font-size: 13px; color: #93a0b2;  }

/* About section */
.about {
  padding: 60px 0;
}

.about h1 {
  margin-bottom: 24px;
  font-size: 32px;
  color: #fff;
}

.about__content {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.about__content p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 16px;
}

.about__content strong {
  color: #fff;
}

.about__content em {
  color: #38bdf8;
  font-style: normal;
}

/* The logo css for the insta, fb stuff */
.site-footer p {
  margin: 5px 0;
  font-size: 14px;
}

.site-footer i {
  margin-right: 8px;
  color: #555; /* gray tone, change as you like */
}

.site-footer a {
  text-decoration: none;
  color: inherit; /* keeps same color as text */
}

.site-footer a:hover {
  color: #25D366; /* e.g., WhatsApp green on hover */
}

.footer-socials {
  display: flex;
  justify-content: center;   /* centers them horizontally */
  gap: 30px;                 /* space between items */
  margin-top: 10px;
  flex-wrap: wrap;           /* makes it wrap on small screens */
}

.footer-socials a {
  text-decoration: none;
  color: #ddd;              /* soft gray text */
  font-size: 14px;
  display: flex;
  align-items: center;
}

.footer-socials i {
  margin-right: 6px;
  font-size: 16px;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-socials a:hover i {
  color: #25D366; /* WhatsApp green or change for hover */
}
