/* =========================================
   LOCAL FONTS (OSSEM)
   ========================================= */
@font-face {
  font-family: 'Ossem Regular';
  src: url('ossem.regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ossem Rough';
  src: url('ossem.rough.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ossem Rounded';
  src: url('ossem.rounded.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ossem Rust';
  src: url('ossem.rust.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Utility classes */
.font-ossem { font-family: 'Ossem', sans-serif !important; }
.font-ossem-rough { font-family: 'Ossem Rough', sans-serif !important; }
.font-ossem-rounded { font-family: 'Ossem Rounded', sans-serif !important; }
.font-ossem-rust { font-family: 'Ossem Rust', sans-serif !important; }

/* =========================================
   BASE & CSS VARIABLES
   ========================================= */
:root {
  --primary: #620f0f;
  --secondary: #901815;
  --accent: #f0c9c4;
  --bg-main: #ffffff;
  --bg-alt: #f4f4f2;
  --bg-card: #ffffff;
  --text-main: #2a1a17;
  --text-muted: #5c4b45;
  --border-subtle: rgba(98, 15, 15, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.96);
  --input-bg: #ffffff;
  --input-border: rgba(98, 15, 15, 0.25);
  --shadow-color: rgba(42, 26, 23, 0.08);
  --banner-bg: linear-gradient(135deg, #4e0c0c, #7a1512 55%, #620f0f);
}

html[data-theme="dark"] {
  --primary: #9e2323;
  --secondary: #bd2a27;
  --accent: #f0c9c4;
  --bg-main: #140d0c;
  --bg-alt: #1e1312;
  --bg-card: #251817;
  --text-main: #f5ebe9;
  --text-muted: #cca9a3;
  --border-subtle: rgba(240, 201, 196, 0.16);
  --nav-bg: rgba(20, 13, 12, 0.94);
  --input-bg: #1c1211;
  --input-border: rgba(240, 201, 196, 0.28);
  --shadow-color: rgba(0, 0, 0, 0.45);
  --banner-bg: linear-gradient(135deg, #2e0707, #4e0c0c 55%, #3a0909);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Ossem Rounded', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

input, select, textarea, button {
  font-family: inherit;
}

::selection {
  background: var(--secondary);
  color: #ffffff;
}

#hero, #services, #projects, #process, #reviews, #contact {
  scroll-margin-top: 86px;
}

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.opacity-40 { opacity: 0.4; }
.pointer-events-none { pointer-events: none; }
.border-none { border: none !important; }

/* =========================================
   UI COMPONENTS
   ========================================= */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(98, 15, 15, 0.28);
  transition: all 0.2s ease;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(98, 15, 15, 0.4);
}

/* Section Shared */
.section-header { text-align: center; max-width: 750px; margin: 0 auto 48px; }
.section-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.section-title { font-family: 'Ossem Rough', sans-serif; font-weight: 600; font-size: 54px; margin: 0 0 16px; color: var(--primary); letter-spacing: 1px; }
.section-sub { font-size: 20px; line-height: 1.65; color: var(--text-muted); margin: 0; }

/* Progress Bar */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, #901815, #620f0f); z-index: 1100; transition: width 0.1s ease; }

/* Main Wrapper */
.main-wrapper { max-width: 1440px; margin: 0 auto; background: var(--bg-main); overflow-x: clip; }

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 8px 48px; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle); transition: box-shadow 0.3s ease; }
.header-left { display: flex; align-items: center; gap: 36px; }
.header-logo-link { display: block; }
.header-logo-img { display: block; }
.desktop-nav-links { display: flex; align-items: center; gap: 26px; }

.nav-link-item { font-size: 17px; font-weight: 600; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.08em; position: relative; padding: 6px 0; transition: color 0.25s ease; }
.nav-link-item:hover, .nav-link-item.active { color: var(--primary) !important; }
.nav-link-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--secondary); transition: width 0.25s ease; }
.nav-link-item:hover::after, .nav-link-item.active::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 16px; }
.util-btn { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-main); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.25s ease; }
.util-btn:hover { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.util-btn .material-symbols-outlined { font-size: 15px;}

/* Circle Icon Button (for Theme Toggle matching Phone Icon) */
.circle-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  color: #ffffff;
  flex: none;
  padding: 0;
}
/* Adjusting material symbol to perfectly fit the circle without hover effects */
.circle-icon-btn .material-symbols-outlined {
  font-size: 18px; 
}

.header-phone-link { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; font-size: 16px; }
.header-phone-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); flex: none; }
.header-cta { background: var(--primary); color: #ffffff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 22px; border-radius: 999px; transition: all 0.2s ease; box-shadow: 0 8px 20px rgba(98, 15, 15, 0.25); }
.burger-btn { display: none; background: none; border: none; font-size: 26px; color: var(--primary); cursor: pointer; padding: 4px; }

/* Mobile Drawer */
.mobile-drawer { position: fixed; top: 80px; left: 0; right: 0; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 999; padding: 24px; border-bottom: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 18px; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform 0.35s ease, opacity 0.35s ease; box-shadow: 0 20px 40px var(--shadow-color); }
.drawer-btn-group { display: flex; gap: 12px; margin-top: 8px; }
.drawer-btn { flex: 1; justify-content: center; }
.drawer-contact { border-top: 1px solid var(--border-subtle); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.drawer-phone { color: var(--primary); font-weight: 800; font-size: 18px; }

/* Hero Section */
.hero-section { background: linear-gradient(180deg, var(--bg-main), var(--bg-alt)); min-height: calc(100vh - 86px); display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 52px 48px 36px; box-sizing: border-box; flex-grow: 1; }
.hero-eyebrow-wrap { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-eyebrow-dot { width: 8px; height: 8px; background: var(--secondary); transform: rotate(45deg); display: inline-block; }
.hero-eyebrow-text { font-size: 15px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--secondary); }
.hero-title { font-family: 'Ossem Rough', sans-serif; font-weight: 600; font-size: 54px; line-height: 1.06; margin: 0 0 20px; letter-spacing: -0.01em; color: var(--primary); }
.hero-sub-p { font-size: 20px; font-weight: 500; line-height: 1.65; color: var(--text-muted); margin: 0 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 38px; flex-wrap: wrap; }
.hero-link { color: var(--primary); font-weight: 700; font-size: 18px; border-bottom: 2px solid var(--border-subtle); padding-bottom: 2px; }
.hero-chips { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-chip { display: flex; align-items: center; gap: 10px; }
.hero-chip-dot { width: 6px; height: 6px; background: var(--secondary); transform: rotate(45deg); }
.hero-chip-text { font-size: 17px; font-weight: 800; color: var(--text-main); }
.hero-img-col { position: relative; }
.hero-img-border { position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--border-subtle); border-radius: 14px; }
.hero-img-wrapper { position: relative; height: 460px; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px var(--shadow-color); }
.hero-img-inner { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease; }
.hero-dots-wrap { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.hero-dot { width: 22px; height: 4px; border-radius: 2px; background: #ffffff; transition: opacity 0.3s; }

/* Mobile Hero Form */
.mobile-hero-form { display: none; }

/* Stats */
.stats-banner { background: var(--banner-bg); color: #ffffff; padding: 20px 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.stat-item { text-align: center; border-right: 1px solid rgba(240, 201, 196, 0.2); cursor: default; transition: transform 0.25s ease; }
.stat-value { font-family: 'Ossem Rough', sans-serif; font-size: 44px; font-weight: 600; line-height: 1; }
.stat-label { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #e6cfcf; margin-top: 5px; }
@media (max-width: 768px) {
  .stat-item {
    padding: 1px 1px;       /* shrinks vertical and horizontal distances */
  }
  .stat-value {
    font-size: 26px;         /* compact size of numbers */
    line-height: 0.95;       /* more retracted vertical alignment */
  }
  .stat-label {
    font-size: 11px;          /* smaller text */
    letter-spacing: 0.04em;  /* reduced letter spacing */
    margin-top: 2px;         /* minimum distance below the number */
  }
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* Services */
.services-section { padding: 72px 48px; background: var(--bg-main); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { padding: 28px 24px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--border-subtle); transition: all 0.3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 16px 36px var(--shadow-color); border-color: var(--primary); }
.service-title { font-family: 'Ossem Rough', sans-serif; font-size: 24px; font-weight: 700; color: var(--primary); margin: 0 0 10px; letter-spacing: 1px; }
.service-desc { font-size: 17px; line-height: 1.55; color: var(--text-muted); margin: 0; flex-grow: 1; }


/* =========================================
   PORTFOLIO STYLES 
   ========================================= */
.projects-section { padding: 72px 48px; background: var(--bg-alt); }
.projects-header-top { margin-bottom: 32px; }
.projects-title { font-family: 'Ossem Rough', sans-serif; font-weight: 600; font-size: 44px; margin: 0 0 12px; line-height: 1.1; color: var(--primary); letter-spacing: 1px; }

/* Filter Pills - single scrollable line */
.ptf-filters-wrap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
  scrollbar-width: none;
}
.ptf-filters-wrap::-webkit-scrollbar { display: none; }
.ptf-pill {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: 'Ossem Rounded', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.ptf-pill:hover { border-color: #1a1a1a; }
.ptf-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: none; /* No shadow */
}

/* Category Header Banner */
.ptf-cat-header {
  display: none; /* Shown via JS */
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 12px 14px 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  animation: ptfFadeIn 0.4s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.ptf-cat-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-muted);
}
.ptf-cat-info strong {
  color: var(--primary);
  font-weight: 800;
}
.ptf-star {
  width: 28px;
  height: 28px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.ptf-back-btn {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: 'Ossem Rounded', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ptf-back-btn:hover {
  background: #333;
  transform: translateX(-4px);
}

/* Slider System (for "All" categories only) */
.ptf-slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  animation: ptfFadeIn 0.5s ease;
}
@keyframes ptfFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.ptf-slider-track-wrap {
  overflow: hidden; /* Hide overflow for JS infinity loop */
  width: 100%;
  padding: 10px 0; /* Padding for shadow clearance */
}

.ptf-slider-track {
  display: flex;
  gap: 24px;
  width: 100%;
}

/* Slider Arrows */
.ptf-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px; 
  transition: all 0.2s;
}
.ptf-slider-arrow:hover { background: #1a1a1a; color: #ffffff; }
.ptf-prev-arrow { left: -16px; } 
.ptf-next-arrow { right: -16px; }

/* Premium Category Card (Portrait) */
.ptf-cat-card {
  position: relative;
  flex: 0 0 calc(25% - 18px); /* 4 items layout by default */
  aspect-ratio: 3/4; /* Elegant portrait */
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.ptf-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ptf-cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
  opacity: 0.7;
  transition: opacity 0.4s ease;
}
.ptf-cat-card:hover img {
  transform: scale(1.08);
}
.ptf-cat-card:hover::after {
  opacity: 1;
}
.ptf-cat-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
}
.ptf-cat-content h3 {
  font-family: 'Ossem Rough', sans-serif;
  font-size: 26px;
  color: #ffffff;
  margin: 0;
  letter-spacing: 1px;
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ptf-cat-card:hover .ptf-cat-content h3 {
  transform: translateY(0);
}


/* Inner Grid for Specific Category (4 on one row desktop) */
.ptf-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 on a row */
  gap: 24px;
  animation: ptfFadeIn 0.5s ease;
}
.ptf-proj-card {
  background: var(--bg-card); /* White background */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-subtle);
}
.ptf-proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.ptf-proj-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.ptf-proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.ptf-proj-card:hover .ptf-proj-img-wrap img {
  transform: scale(1.05);
}
.ptf-proj-info {
  padding: 20px 24px;
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.ptf-proj-info h4 {
  font-family: 'Ossem Rounded', sans-serif;
  font-size: 18px;
  margin: 0;
  color: var(--text-main);
  transition: color 0.3s ease;
  line-height: 1.4;
}


/* Advanced Modal (Split Layout) */
.ptf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ptf-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.ptf-modal-container {
  background: var(--bg-card);
  width: 100%;
  max-width: 1300px;
  height: 90vh;
  max-height: 800px;
  border-radius: 28px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
  transform: scale(0.96) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.ptf-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #efe8e1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 50;
}
.ptf-close-btn:hover { background: #f4f4f2; transform: scale(1.05); }

.ptf-modal-overlay.active .ptf-modal-container {
  transform: scale(1) translateY(0);
}
.ptf-modal-left {
  flex: 1.6;
  background: #fdfaf6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.ptf-modal-left img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.ptf-modal-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}
.ptf-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #efe8e1;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  z-index: 10;
}
.ptf-nav-btn:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.ptf-nav-btn.prev { left: 24px; }
.ptf-nav-btn.next { right: 24px; }

.ptf-modal-right {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.ptf-m-overline {
  font-size: 11px;
  font-weight: 800;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.ptf-m-title {
  font-family: 'Ossem Rough', sans-serif;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}
.ptf-m-desc {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-main);
  margin: 0 0 32px 0;
}
.ptf-m-bottom-nav {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #efe8e1;
  padding-top: 24px;
}
.ptf-m-btn {
  background: none;
  border: none;
  font-family: 'Ossem Rounded', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.ptf-m-btn:hover { opacity: 0.7; }


/* Process Section */
.process-section { padding: 72px 48px; background: var(--bg-main); }
.process-header { text-align: center; margin-bottom: 48px; }
.process-title { font-family: 'Ossem Rough', sans-serif; font-weight: 600; font-size: 44px; margin: 0; color: var(--primary); letter-spacing: 1px; }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-line { position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, rgba(98, 15, 15, 0.28) 0 8px, transparent 8px 16px); }
.process-step { text-align: center; position: relative; }
.process-dot { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--secondary); background: var(--bg-card); color: var(--primary); font-family: 'Ossem Rough', sans-serif; font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; transition: all 0.3s ease; }
.process-step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); text-transform: uppercase; }
.process-step-desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.process-footer { text-align: center; margin-top: 44px; }

/* Reviews */
.reviews-section { padding: 72px 48px; background: linear-gradient(180deg, var(--bg-main), var(--bg-alt)); }
.reviews-carousel-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.reviews-track-inner { position: relative; min-height: 280px; }
.review-slide { position: absolute; inset: 0; transition: opacity 0.6s ease; text-align: center; padding: 0 48px; }
.review-avatar-wrap { margin-bottom: 12px; display: flex; justify-content: center; }
.review-avatar-img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); box-shadow: 0 6px 16px var(--shadow-color); }
.review-quote-mark { font-family: 'Ossem Rough', sans-serif; font-size: 54px; line-height: 0; color: var(--secondary); height: 28px; }
.review-text { font-family: 'Ossem Rounded', sans-serif; font-size: 20px; line-height: 1.45; color: var(--text-main); margin: 0 0 20px; font-style: italic; }
.review-author { font-weight: 700; font-size: 16px; letter-spacing: 0.06em; color: var(--primary); }
.review-nav-btn { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 46px; 
  height: 46px; 
  border-radius: 50%; 
  border: 1px solid var(--border-subtle); 
  background: var(--bg-card); 
  color: var(--primary); 
  cursor: pointer; 
  transition: all 0.25s ease; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 25; 
  user-select: none;
  -webkit-user-select: none;
}
.review-nav-btn:hover { 
  background: var(--primary); 
  color: #ffffff; 
  border-color: var(--primary); 
  box-shadow: 0 6px 18px rgba(98, 15, 15, 0.25); 
}
.review-nav-btn.prev { left: -16px; }
.review-nav-btn.next { right: -16px; }
.review-dots-wrap { display: flex; justify-content: center; gap: 10px; margin-top: 34px; position: relative; z-index: 25; }
.review-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(98, 15, 15, 0.25); cursor: pointer; transition: all 0.25s ease; }
.review-dot.bg-active { background: #901815; transform: scale(1.3); }

/* Contact Section */
.contact-section { display: grid; grid-template-columns: 1.05fr 1fr; grid-auto-rows: min-content; align-items: start; gap: 0; background: #620f0f; }
.contact-left { padding: 48px; color: #ffffff; }
.contact-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #e6b8b0; margin-bottom: 10px; }
.contact-title { font-family: 'Ossem Rough', sans-serif; font-weight: 600; font-size: 44px; margin: 0 0 12px; line-height: 1.05; color: #ffffff; letter-spacing: 1px;}
.contact-sub { font-size: 16px; line-height: 1.5; color: #e9d6d3; margin: 0 0 28px; }
.contact-channels-wrap { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.contact-channel-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); transition: all 0.25s ease; text-decoration: none; color: #ffffff; }
.contact-channel-item:hover { background: rgba(255, 255, 255, 0.18); transform: translateX(6px); border-color: rgba(255, 255, 255, 0.35); }
.contact-icon-wrap { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-text-wrap { display: flex; flex-direction: column; }
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #f0c9c4; font-weight: 800; }
.contact-val { font-size: 15px; font-weight: 700; color: #ffffff; }
.contact-val.large { font-size: 16px; }

/* Contact Form */
.contact-right { padding: 48px; background: var(--bg-card); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input { padding: 15px 16px; border: 1px solid var(--input-border); border-radius: 10px; font-size: 15px; background: var(--input-bg); color: var(--text-main); outline: none; transition: border-color 0.2s; }
.form-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.form-chip { cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--border-subtle); background: var(--bg-card); color: var(--text-main); font-size: 14px; font-weight: 700; transition: all 0.2s; }
.form-chip.active { border-color: #620f0f; background: #620f0f; color: #ffffff; box-shadow: 0 6px 16px rgba(98, 15, 15, 0.22); }
.form-textarea { 
  padding: 15px 16px; 
  border: 1px solid var(--input-border); 
  border-radius: 10px; 
  font-size: 15px; 
  background: var(--input-bg); 
  color: var(--text-main); 
  resize: vertical; 
  outline: none; 
  transition: border-color 0.2s; 
  max-height: 300px; 
}
.submit-btn { cursor: pointer; background: var(--primary); color: #ffffff; font-weight: 700; font-size: 16px; padding: 16px; border: none; border-radius: 11px; box-shadow: 0 12px 26px rgba(98, 15, 15, 0.28); transition: all 0.2s ease; }
.privacy-note-wrap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); text-align: center; justify-content: center; }
.privacy-lock { color: var(--secondary); }

.success-msg-wrap { display: none; text-align: center; padding: 40px 20px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 20px; animation: mbFade 0.5s ease; }
.success-title { font-family: 'Ossem Rough', sans-serif; font-size: 28px; color: var(--text-main); }

/* Mobile Footer Channels */
.mobile-footer-channels { display: none; }

/* Footer */
.site-footer { background: #3b0909; color: #f3e3e1; padding: 28px 48px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-logo { filter: brightness(0) invert(1); display: block; margin-bottom: 8px; }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-link { color: #e7dfdb; font-size: 15.5px; text-decoration: underline; cursor: pointer; }
.footer-divider { color: rgba(255, 255, 255, 0.3); }
.footer-right { text-align: right; font-size: 14px; line-height: 1.8; }
.footer-contact-link { color: #e7dfdb; font-size: 15.5px;}
.footer-copy { color: rgba(255, 255, 255, 0.55); font-size: 14px; }

/* Single Scroll-To-Top Button */
.scroll-top-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 850;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.35s ease;
}
.scroll-top-btn:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(98, 15, 15, 0.4);
}

.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 950; max-width: 440px; width: calc(100% - 48px); background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 20px; box-shadow: 0 20px 48px var(--shadow-color); display: none; flex-direction: column; gap: 14px; transform: translateY(20px); opacity: 0; transition: all 0.4s ease; }
.cookie-content { display: flex; align-items: flex-start; gap: 12px; }
.cookie-icon { font-size: 22px; line-height: 1; }
.cookie-text-wrap { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.cookie-title { color: var(--primary); display: block; margin-bottom: 2px; }
.cookie-link { color: var(--primary); font-weight: 700; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.cookie-btn-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border-subtle); padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.2s ease; }
.cookie-btn-accept { background: var(--primary); color: #ffffff; border: none; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }

.modal-overlay { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); padding: 20px; }
.modal-box { background: var(--bg-card); color: var(--text-main); border-radius: 16px; max-width: 650px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 32px; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.modal-title { font-family: 'Ossem Rough', sans-serif; color: var(--primary); font-size: 32px; margin-top: 0; }
.modal-body { font-size: 16px; line-height: 1.6; color: var(--text-main); }
.modal-footer { text-align: right; margin-top: 24px; }
.modal-btn { background: var(--primary); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
  .site-header { padding: 10px 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; min-height: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-banner { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 28px 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(240, 201, 196, 0.2); padding-bottom: 16px; }
  .stat-item:last-child { border-bottom: none; }
  
  .projects-section { padding: 56px 32px; }
  
  .ptf-cat-card { flex: 0 0 calc(33.333% - 16px); }

  .ptf-modal-container { flex-direction: column; height: 95vh; overflow-y: auto; }
  .ptf-modal-left { flex: none; height: 40vh; padding: 20px; }
  .ptf-modal-right { padding: 32px; flex: none; overflow-y: visible; }
  .ptf-nav-btn { top: auto; bottom: 16px; transform: none; }
  .ptf-nav-btn.prev { left: 16px; }
  .ptf-nav-btn.next { right: 16px; }
  .ptf-modal-counter { bottom: 26px; }
  .ptf-m-bottom-nav { margin-top: 32px; }

  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-line { display: none; }
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	
  /* Force light theme CSS variables on mobile */
  :root {
    --primary: #620f0f !important;
    --secondary: #901815 !important;
    --accent: #f0c9c4 !important;
    --bg-main: #ffffff !important;
    --bg-alt: #f4f4f2 !important;
    --bg-card: #ffffff !important;
    --text-main: #2a1a17 !important;
    --text-muted: #5c4b45 !important;
    --border-subtle: rgba(98, 15, 15, 0.12) !important;
    --nav-bg: rgba(255, 255, 255, 0.96) !important;
    --input-bg: #ffffff !important;
    --input-border: rgba(98, 15, 15, 0.25) !important;
    --shadow-color: rgba(42, 26, 23, 0.08) !important;
    --banner-bg: linear-gradient(135deg, #4e0c0c, #7a1512 55%, #620f0f) !important;
  }

  h1, .hero-title { font-size: 30px !important; line-height: 1.15 !important; }
  h2, .section-title, .projects-title, .process-title, .contact-title { font-size: 24px !important; line-height: 1.2 !important; }
  h3 { font-size: 20px !important; }
  .section-header { margin: 0 auto 24px !important; }
  .projects-header-top { margin-bottom: 24px !important; }

  .desktop-nav-links, .burger-btn, .mobile-drawer, .site-header #btnThemeToggle { display: none !important; }
  .site-header { padding: 10px 16px; }

  .hero-section { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px 32px; }
  .hero-chips { display: none !important; }
  .hero-img-wrapper, .hero-img-border { display: none !important; }
  .hero-link { display: none !important; } 
  
  .mobile-hero-form { display: block; background: var(--bg-card); padding: 24px 18px; border-radius: 16px; border: 1px solid var(--border-subtle); box-shadow: 0 10px 30px var(--shadow-color); margin-top: 8px; }
  .mobile-form-title { font-family: 'Ossem Rough', sans-serif; font-size: 26px; color: var(--primary); margin: 0 0 16px; text-align: center; letter-spacing: 0.5px; }

  /* Compact section paddings for mobile */
  .services-section, .process-section, .reviews-section, .projects-section { padding: 32px 16px !important; }
  .contact-left, .contact-right { padding: 32px 16px !important; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; } 
  #contact { display: none !important; }

  .mobile-footer-channels { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; width: 100%; padding-right: 70px; box-sizing: border-box; }
  .mob-foot-item { display: inline-flex; align-items: center; gap: 10px; color: #ffffff; font-size: 15px; font-weight: 700; }
  
  .scroll-top-btn { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 20px; text-align: left; padding: 28px 20px; }
  .site-footer > div { text-align: left; width: 100%; }
  
  /* Mobile portfolio tweaks (Infinite JS swipe) */
  .ptf-filters-wrap { display: none !important; } 
  
  .ptf-slider-arrow { display: none; }
  .ptf-slider-track-wrap { 
    overflow: hidden !important; /* Important fix for escaping items */
    padding: 10px 0 !important; 
    margin: 0 !important; 
    touch-action: pan-y; /* Allows vertical scrolling */
  }
  
  .ptf-cat-card { 
    flex: 0 0 calc(50% - 8px); /* Exactly 2 visible */
    aspect-ratio: 1/1; 
  }
  .ptf-cat-content h3 { font-size: 18px; } 
  .ptf-cat-content { bottom: 12px; left: 12px; right: 12px; }
  
  .ptf-grid-container { grid-template-columns: 1fr; gap: 24px; } 
  .ptf-cat-header { flex-direction: column; gap: 12px; align-items: flex-start; border-radius: 16px; }
  
  .ptf-modal-right { padding: 24px; }
  .ptf-m-title { font-size: 24px; }
  .ptf-close-btn { top: 16px; right: 16px; } 

  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .review-nav-btn.prev { left: 0px; }
  .review-nav-btn.next { right: 0px; }
  .review-slide { padding: 0 32px; }
  
  .contact-title { margin: 0 0 8px; }
  .contact-sub { margin: 0 0 20px; }
  .contact-channels-wrap { margin-bottom: 20px; }
  .stats-banner { padding: 24px 16px; }
}