/* =========================================================
   THEME / DESIGN TOKENS
   Central place for colors, typography, sizing, spacing.
   ========================================================= */
:root {
  /* ColorSpace colors (background gradient palette) */
  --c1: #779adb;
  --c2: #6f6bd2;
  --c3: #353772;

  /* Neutrals (text) */
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --subtle: rgba(255, 255, 255, 0.55);

  /* Surfaces (glassmorphism layers + borders) */
  --glass: rgba(9, 12, 22, 0.55);
  --glass-strong: rgba(9, 12, 22, 0.72);
  --stroke: rgba(255, 255, 255, 0.14);

  /* Accent color (highlights, emphasis) */
  --accent: #b9c9ff; /* soft highlight that plays nice with your gradient */

  /* Typography */
  --font: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Layout + shape */
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 12px 38px rgba(0, 0, 0, 0.35);

  /* Container width */
  --container: 1120px;
}


/* =========================================================
   BASE / RESETS
   Global defaults for layout + typography + links.
   ========================================================= */
* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;

  /* Background: layered gradient */
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(255,255,255,0.12), transparent 60%),
    radial-gradient(900px 650px at 80% 30%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(to top, var(--c1), var(--c2), var(--c3));
  background-attachment: fixed;

  /* Footer sits at bottom */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Basic typography spacing */
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 0.75rem; line-height: 1.1; }

/* Inline code style */
code {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
}

/* Consistent page container */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Generic section spacing */
.section {
  padding: 3.5rem 0;
}

/* Section heading cluster */
.section-head {
  margin-bottom: 1.6rem;
}

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  letter-spacing: -0.02em;
}

.section-kicker {
  margin-top: 0.4rem;
  color: var(--muted);
  max-width: 68ch;
}

/* Utility text classes */
.muted { color: var(--muted); }
.tiny { font-size: 0.9rem; }


/* =========================================================
   ACCESSIBILITY
   Skip link for keyboard users.
   ========================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  background: rgba(0,0,0,0.8);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}
.skip-link:focus {
  left: 1rem;
  z-index: 999;
}


/* =========================================================
   HEADER / NAV / FOOTER
   Shared site chrome across pages.
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 10, 18, 0.45);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

/* Branding block (logo/name area) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* (Optional) brand mark style if you ever use the text badge again */
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
}

/* Nav links row */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

/* Footer shell */
.site-footer {
  margin-top: auto; /* keeps footer at bottom */
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(8, 10, 18, 0.35);
  backdrop-filter: blur(16px);
}

/* Footer container */
.footer-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  flex-wrap: wrap;
}

/* Center everything as a group (applies when used in HTML) */
.footer-center {
  justify-content: center;
}

/* Remove default p spacing so it aligns clean */
.footer-copy {
  margin: 0;
}

/* Social icons row */
.footer-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Icon styling (tinted to match your palette) */
.footer-icons img {
  width: 18px;
  height: 18px;

  filter: brightness(0) saturate(100%)
          invert(83%) sepia(12%) saturate(900%)
          hue-rotate(195deg) brightness(105%) contrast(95%);

  opacity: 0.85;
  display: block;
}


/* =========================================================
   CARDS / GLASS UI
   Reusable "card" structure + glass surface.
   ========================================================= */
.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.card-title {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}


/* =========================================================
   HERO (LANDING PAGE)
   ========================================================= */
.hero {
  padding-top: 2.25rem;
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-copy {
  padding: 1.6rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4.3vw, 3.6rem);
  letter-spacing: -0.03em;
  margin-top: 1rem;
}

.accent {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--muted);
  max-width: 68ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin: 1.25rem 0 1.1rem;
  flex-wrap: wrap;
}

/* Hero image frame (controls clipping/rounding) */
.hero-image-frame{
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

/* Hero image (fills frame without stretching) */
.hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Quick facts list */
.meta-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}
.meta-list strong { color: var(--text); }

/* Right side hero panel wrapper */
.hero-visual {
  padding: 1.6rem;
  min-height: clamp(320px, 45vh, 520px);
}


/* =========================================================
   CHIPS / PILLS
   Small tag UI elements.
   ========================================================= */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.12);
  color: var(--muted);
  font-size: 0.9rem;
}


/* =========================================================
   BUTTONS
   Primary + ghost styles with hover/focus states.
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.88);
  border-color: rgba(255,255,255,0.40);
}
.btn.primary:hover,
.btn.primary:focus-visible {
  background: rgba(255,255,255,1);
}

.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}


/* =========================================================
   TWO-COLUMN SECTIONS
   Mobile first (single column), becomes 2-column later.
   ========================================================= */
.two-col {
  display: grid;
  gap: 1.2rem;
}

.two-col .card {
  padding: 1.4rem;
}


/* =========================================================
   PLACEHOLDER VISUALS
   Used for “coming soon” or visual blocks.
   ========================================================= */
.placeholder {
  min-height: 260px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  padding: 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.placeholder-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.14);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.placeholder-text {
  color: var(--muted);
  max-width: 56ch;
}


/* =========================================================
   CONTACT LINKS
   “Chip” style link buttons in contact section.
   ========================================================= */
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.chip-link {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  font-weight: 700;
}
.chip-link:hover,
.chip-link:focus-visible {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}


/* =========================================================
   FORMS
   Contact form layout + visible validation.
   ========================================================= */
.form {
  display: grid;
  gap: 1rem;
}

.field label {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.16);
  color: var(--text);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255,255,255,0.32);
  background: rgba(0,0,0,0.20);
}

.hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

/* Basic visible validation */
input:invalid,
textarea:invalid {
  border-color: rgba(255, 160, 160, 0.55);
}

input:valid,
textarea:valid {
  border-color: rgba(180, 255, 210, 0.28);
}


/* =========================================================
   PROJECTS PAGE
   Grid layout + card hover effects.
   ========================================================= */
.projects-grid {
  display: grid;
  gap: 1.1rem;
  perspective: 900px;
}

/* Rounded corners + contain media */
.project-card {
  overflow: hidden; /* rounded corners + media */
}

/* Project card hover "pop forward" effect */
.project-card {
  position: relative;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Lift + shadow */
.project-card:hover {
  transform: translateY(-10px) scale(1.02);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255,255,255,0.08);
}

/* Project image block */
.project-media {
  height: 220px;
  overflow: hidden;
}

/* Make the whole media area clickable */
.project-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Project image scaling */
.project-media img {
  width: 112%;
  height: 120%;
  object-fit: cover;
  display: block;
}

/* Variant media block */
.project-media.media {
  min-height: 220px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-radius: 0; /* card handles rounding */
  display: grid;
  place-items: center;
}

.project-body {
  padding: 1.2rem;
}

.project-title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.project-summary {
  color: var(--muted);
  max-width: 70ch;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

/* Centered CTA row */
.center-row {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}


/* =========================================================
   RESPONSIVE (MOBILE FIRST)
   Adds columns on larger screens.
   ========================================================= */
/* Tablet+ */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 400px;
    align-items: stretch;
  }

  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  /* multi-column projects */
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 4.25rem 0;
  }
}

/* Desktop+ */
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* =========================================================
   CASE STUDY PAGES (project detail pages)
   ========================================================= */
/* Back button style */
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.back-link:hover { background: rgba(255,255,255,0.10); }

/* Case hero/title card */
.case-hero {
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}

.case-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  margin-top: 0.9rem;
}

/* Metadata list in hero card */
.case-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
  margin-top: 1.2rem;
  color: var(--muted);
}
.case-meta dt {
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.case-meta dd { margin: 0; }

/* Main case content */
.case-body {
  padding: 1.6rem;
}
.case-body h2 {
  margin-top: 1.4rem;
}
.case-body p, .case-body li {
  color: var(--muted);
  max-width: 75ch;
}


/* Case study hero image/placeholder */
.case-hero-media {
  width: 100%;
  height: 350px;
  border-radius: 28px;
  overflow: hidden;
  margin: 0;

  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.16);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);

  padding-bottom: 5.25rem;

  position: relative;
}

/* Placeholder wrapper behind hero image */
.case-hero-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.22));
}

/* ===== Case header: hero + docked title card ===== */
.case-head {
  position: relative;
  margin-bottom: 2.25rem;
}

/* (Duplicate selector intentionally kept as-is: later definition overrides earlier) */
.case-hero-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 420px at 25% 20%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.18));
}

/* The title/info card "docks" into the hero */
.case-head .case-hero {
  width: min(900px 420px at 25% 20%);
  margin-inline: auto;

  /* feels attached */
  border-radius: 22px;

  padding: 1.6rem;
  position: relative;
  z-index: 2;
}

/* Hero image inside the case header */
.case-hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}