/* ===== Base tokens if not already defined ===== */
:root {
  --font-brand: 'DELIRIUM', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #ffffff;
  --fg: #000000;
  --muted: #64748b;
  --accent: #007aff;
  --accent-ink: #0056c9;
  --border: #e5e7eb;

  --maxw: 1200px;
}

@font-face {
    font-family: "Delerium";
    src: url("../fonts/Delerium.ttf") format("ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Delerium Neon";
    src: url("../fonts/DeleriumNeon.ttf") format("ttf");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Base */
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ===== Top banner ===== */
.top-banner {
  width: 100%;
  background: #fff;
}
.top-banner-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 210px;    /* adjust if needed */
  object-fit: cover;
}

/* ===== HOME HERO IMAGE ===== */

.home-hero {
    position: relative;
    width: 100vw;      /* full viewport width */
    left: 50%;         /* center relative to viewport */
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

/* control how tall the hero appears */
.home-hero img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 75vh;  /* cap it: 75% of the viewport height */
    object-fit: cover; /* fill the frame without distortion */
}

/* ===== Header (sticky, logo + nav) ===== */
.site-header {
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Main header row: left buttons – logo – right buttons */
.header-inner.header-split {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;   /* center whole group */
  gap: 3rem;                 /* space between left, logo, right */
  flex-wrap: nowrap;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* brand (logo + title) */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img,
.custom-logo,
.brand-logo-fallback {
  height: auto;
  width: auto;
  max-height: 60px;  /* ✅ THIS controls logo size */
  max-width: 100%;
}

.brand .title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.brand.center-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand.center-brand img,
.custom-logo,
.brand-logo-fallback {
  display: block;
  width: auto;
  height: auto;
  max-height: 150px;   /* 👈 tweak this number to shrink/grow */
  max-width: 100%;
}

.nav-btn {
  position: relative;
  text-decoration: none;
  align-items: center;
  color: #000;
  font-family: "DELIRIUM", var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: .5rem;
  padding-bottom: 0.1rem;
}

/* underline-on-hover effect */
.nav-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #007aff;            /* your blue */
  transition: width 0.18s ease-out;
}

.nav-btn:hover::after {
  width: 100%;
}

@media (max-width: 800px) {
  .header-inner.header-split {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-side {
    gap: 1rem;
  }

  .brand.center-brand img,
  .custom-logo,
  .brand-logo-fallback {
    max-height: 48px;
  }
}

.nav-btn {
  font-family: "Delerium", var(--font-body, "Inter", system-ui, sans-serif);
}

/* If you left the title span in, keep it tight */
.brand.center-brand .title {
  margin-left: 0.5rem;
  font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* nav list */
.primary-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
}

.primary-nav .nav-list a {
  position: relative;
  text-decoration: none;
  color: #000;
  font-family: "DELIRIUM", var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.1rem;
}

/* underline hover */
.primary-nav .nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}
.primary-nav .nav-list a:hover::after {
  width: 100%;
}

/* Mobile: stack logo + nav */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav .nav-list {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .brand img,
  .custom-logo,
  .brand-logo-fallback {
    max-height: 48px;
  }
}

@media (max-width: 800px) {
    /* stack the header vertically on small screens */
    .header-inner.header-split {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem; /* space between logo + nav groups */
    }

    /* control vertical order: logo first, then left, then right */
    .brand.center-brand {
        order: 1;
    }

    .nav-left {
        order: 2;
    }

    .nav-right {
        order: 3;
    }

    /* stack nav buttons in each group */
    .nav-side {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* make each button nicely “blocky” and centered */
    .nav-btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    /* slightly smaller logo on mobile */
    .brand.center-brand img,
    .custom-logo,
    .brand-logo-fallback {
        max-height: 48px;
    }
}


/* ===== Home banners (3 links) ===== */
.home-banners {
    max-width: 1800px;
    margin: 2.5rem auto 3.5rem;
    padding: 0 1.5rem;
    display: grid;
    gap: 1.5rem;
}

/* stack on mobile, 3 across on larger screens */
@media (min-width: 900px) {
    .home-banners {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (min-width: 1200px) {
.nav-btn {
  position: relative;
  text-decoration: none;
  align-items: center;
  color: #000;
  font-family: "DELIRIUM", var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1rem;
  padding-bottom: 0.1rem;
}
}

.home-banner {
    position: relative;
    display: block;
    border-radius: 1.1rem;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    isolation: isolate;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.09);
}

/* image */
.home-banner__image {
    position: relative;
    overflow: hidden;
}

.home-banner__image img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 16 / 9;       /* keeps them nice and consistent */
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.25s ease, transform 0.25s ease;
}

/* hover: B/W -> color slight zoom */
.home-banner:hover .home-banner__image img {
    filter: grayscale(0);
    transform: scale(1.04);
}

/* overlay with text */
.home-banner__overlay {
    position: absolute;
    inset: 0;
    padding: 1.25rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.25rem;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.65)
    );
}


/* titles in DELIRIUM, subtitles in Inter */
.home-banner__title {
    margin: 0;
    font-family: "DELIRIUM", var(--font-heading, "Montserrat", system-ui, sans-serif);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.home-banner__subtitle {
    margin: 0;
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* ===== Sticky Footer Layout ===== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full viewport height */
}

.site-main {
  flex: 1; /* pushes footer down */
}

.site-footer {
  margin-top: auto;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}


/* ===== Projects Page ===== */

.projects-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.projects-header {
    margin-bottom: 1rem;
  text-align: center;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: clamp(1rem, 4vw, 2.75rem);
  margin-top: 0rem;
  margin-bottom: 1.5rem;
  color: #000;
}

/* Filters can stay as you already have them */

/* ===== PROJECTS PAGE HEADER ===== */
.page-title {
  text-align: center;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: #000;
}

.project-filters,
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem; /* space between buttons */
  margin-bottom: 2rem;
  text-align: center;
}

/* Filter buttons – shared style */
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-family: "DELIRIUM", var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
}

/* active = inverted */
.filter-btn.active {
    background: #000;
    color: #fff;
}

/* Masonry-style grid: 1 / 2 / 4 columns */
.projects-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .projects-grid {
        column-count: 2;
    }
    .filter-btn {
        margin:10px;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        column-count: 4;
    }
}

/* Each project item flows into columns with equal spacing */
.project-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;  /* vertical spacing between items */
}

/* Link block: we’ll handle overlay and rounding here */
.project-link {
    position: relative;
    display: block;
    overflow: hidden;
    /* border-radius: 1rem; */
    background: #000;
}

/* Images: fixed width via column, flexible height, no forced aspect ratio */
.project-thumb img,
.project-thumb--placeholder {
    display: block;
    width: 100%;
    height: auto;
}

/* Optional placeholder style */
.project-thumb--placeholder {
    background: #ddd;
    aspect-ratio: 4 / 3;
}

/* Hover overlay with title */
.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 0.85rem 0.9rem;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.7)
    );
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.project-title {
    margin: 0;
    font-family: "DELIRIUM", var(--font-heading, "Montserrat", system-ui, sans-serif);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

/* Category chips on single project page */
.single-project-meta {
    margin-top: 0.5rem;
}

.single-project-meta .proj-cats a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem 0.25rem 0;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-family: "DELIRIUM", var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.single-project-meta .proj-cats a:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

.proj-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.25rem 0.25rem 0;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-family: "DELIRIUM", var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Single project layout */
.single-project {
    padding: 2.5rem 1.5rem 4rem;
}

/* Inner wrapper controls width + centering */
.single-project-inner {
    max-width: 960px;
    margin: 0 auto;
}

.single-project-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-project-title {
    font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
    font-size: clamp(2.1rem, 3.4vw, 2.7rem);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.single-project-excerpt {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.98rem;
    color: rgba(0,0,0,0.7);
    max-width: 40rem;
    margin: 0.25rem auto 0.75rem;
}

/* hero image */
.single-project-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 1.1rem;
  width: 100%;
  max-width: 100%; /* no horizontal scroll */
}

.single-project-hero img {
  display: block;
  max-width: 100%;
  height: auto;

  /* Hard caps so image can’t take over the page */
  max-width: 1200px;   /* limits very wide images */
  max-height: 650px;   /* limits very tall images */

  width: auto;          /* allows it to shrink naturally */
  margin: 0 auto;       /* centers horizontally */
  object-fit: contain;  /* ensures full image visible inside its bounds */
}

/* body text */
.single-project-body {
    line-height: 1.7;
    font-size: 0.98rem;
}

.single-project-body p {
    margin-bottom: 1.1rem;
}


/* Hover state: show title, slight zoom on image */
.project-link:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-link:hover img {
    transform: scale(1.03);
    transition: transform 0.2s ease-out;
}

.single-project-hero {
    margin-bottom: 1.75rem;
}

.single-project-hero img {
    width: 100%;
    display: block;
    border-radius: 1.1rem;
}

.single-project-content {
    margin-top: 1rem;
}

.single-project-body {
    line-height: 1.7;
    font-size: 0.98rem;
}

.single-project-body p {
    margin-bottom: 1.1rem;
}

/* ===== Back to Projects button ===== */
.back-to-projects {
  text-align: center;
  margin: 1rem 0 2.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-family: "DELIRIUM", var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.back-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

/* ========== ABOUT PAGE ========== */

.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

/* HERO */

.about-hero {
    margin-bottom: 3rem;
    
}

.about-hero-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
    max-width: 900px; /* matches the rest of the page */
  margin: 0 auto;
  padding: 0 1.5rem; /* ensures even left/right spacing */
}

@media (min-width: 900px) {
    .about-hero-inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

.about-title {
    font-family: "DELIRIUM", var(--font-heading, "Montserrat", system-ui, sans-serif);
    font-size: clamp(2.4rem, 4vw, 3rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    margin-top: 0px;
}

.about-intro {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.about-intro-small {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.9rem;
    color: rgba(0,0,0,0.7);
}

.about-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    /* border-radius: 1.2rem; */
    object-fit: cover;
    box-shadow: 8px 8px 0 #000; /* strong black shadow */
}

/* SECTION WRAPPER */

.about-section {
    margin-bottom: 3.5rem;
}

.about-section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.about-section-title {
    font-family: "DELIRIUM", var(--font-heading, "Montserrat", system-ui, sans-serif);
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.about-section-body {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 1.5rem;
}

/* PROCESS STEPS */

.about-process-steps {
    display: grid;
    gap: 1.4rem;
}

@media (min-width: 768px) {
    .about-process-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.process-step h3 {
    font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.process-step p {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.9rem;
    color: rgba(0,0,0,0.8);
}

/* SKILLS GRID */

.skills-grid {
    display: grid;
    gap: 1.8rem;
}

@media (min-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.skills-column h3 {
    font-family: var(--font-heading, "Montserrat", system-ui, sans-serif);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.skills-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-column li {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* PERSONAL SECTION */

.about-personal-layout {
    display: grid;
    gap: 1.8rem;
    align-items: flex-start;
}

@media (min-width: 900px) {
    .about-personal-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}

.about-personal-text p {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.about-personal-images {
    display: grid;
    gap: 0.75rem;
}

.about-personal-images img {
    width: 100%;
    height: auto;
    display: block;
    /* border-radius: 1rem; */
    object-fit: cover;
}

/* CONTACT CTA */

.about-contact-inner {
    text-align: center;
}

.about-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-family: "DELIRIUM", var(--font-body, "Inter", system-ui, sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.about-contact-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}


/* footer */
.site-footer {
    background: #000;
    color: #fff;
    padding: 1.5rem 1.5rem 2rem;
    align-items: center;
    justify-content: center;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 0px;
}

.footer-inner p{
    
    margin: 0px;
}

.footer-logo {
    max-height: 80px;
    width: auto;
}

.footer-right{
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
}


/* Ensure body has no extra padding on single project pages */
body.single-project {
    padding: 0;
}


/* ===== FINAL LOGO SIZING OVERRIDES ===== */

/* Base / large desktop */
.site-header .brand.center-brand img,
.site-header .custom-logo,
.site-header .brand-logo-fallback {
  display: block;
  width: auto;
  height: auto;
  max-height: 145px; /* desktop size – tweak as needed */
}

/* Tablet / mid-size screens */
@media (min-width: 768px) and (max-width: 1199px) {
  .site-header .brand.center-brand img,
  .site-header .custom-logo,
  .site-header .brand-logo-fallback {
    max-height: 90px !important; /* a bit smaller than desktop */
  }
}

/* Small mobile */
@media (max-width: 767px) {
  .site-header .brand.center-brand img,
  .site-header .custom-logo,
  .site-header .brand-logo-fallback {
    max-height: 64px !important; /* smaller again for phones */
  }
}