/* ============================================================
   CREATIVE ENGINEERING — Main Stylesheet
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #f0f0f0;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.ce-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.4s ease;
}

/* Transparent on hero, darkens slightly on scroll */
.ce-nav.scrolled {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ce-nav-logo {
  height: 75px;
  width: auto;
  opacity: 1.0;
}

.ce-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.ce-nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s;
  position: relative;
}

.ce-nav-links a:hover,
.ce-nav-links a.active { opacity: 1; }

.ce-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #fff;
}

/* Work dropdown */
.ce-nav-dropdown {
  position: relative;
}

.ce-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  padding-top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 190px;
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ce-nav-dropdown:hover .ce-nav-dropdown-menu,
.ce-nav-dropdown-menu:hover {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.ce-nav-dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s, background 0.15s;
}

.ce-nav-dropdown-menu a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* Mobile nav toggle */
.ce-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.ce-nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   HOME — FULL-SCREEN SLIDES
   ============================================================ */
.ce-home-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle dark overlay for readability */
.ce-home-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  pointer-events: none;
}

/* Hero slide — first slide with text + buttons */
.ce-home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.ce-home-tagline {
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.ce-home-buttons {
  display: flex;
  gap: 16px;
}

.ce-btn {
  display: inline-block;
  font-family: 'Raleway', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 13px 28px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.ce-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.9);
}

/* ============================================================
   INNER PAGES — PAGE HEADER
   ============================================================ */
.ce-page-header {
  padding: 160px 10vw 24px;
}

.ce-page-header::after {
  content: "";
  display: block;
  width: 50%;
  margin: 16px auto 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.ce-page-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.ce-page-title {
  display: none;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 200;
  letter-spacing: -1px;
  line-height: 1.05;
  color: #fff;
}

/* ============================================================
   WORK / PORTFOLIO INDEX
   ============================================================ */
.ce-work-page {
  min-height: 100vh;
  background: #0a0a0a;
}

.ce-category-section {
  padding: 64px 10vw;
  /* border-bottom removed */
}

.ce-category-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 36px;
}

.ce-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 20px;
}

.ce-project-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.ce-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.ce-project-card:hover img {
  transform: scale(1.04);
  opacity: 0.75;
}

.ce-project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ce-project-card:hover .ce-project-card-info {
  opacity: 1;
  transform: translateY(0);
}

.ce-project-card-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 4px;
}

.ce-project-card-year {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */
.ce-project-hero {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.ce-project-body {
  max-width: 70vw;
  margin: 0 auto;
  padding: 72px 4vw;
}

.ce-project-meta {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ce-project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ce-project-meta-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.ce-project-meta-value {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.ce-project-description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-bottom: 56px;
}

.ce-project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ce-project-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ce-project-gallery img:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.ce-about-page {
  min-height: 100vh;
  background: #0a0a0a;
}

.ce-about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 60vh;
}

.ce-about-text {
  padding: 80px 10vw 80px 10vw;
  max-width: 640px;
}

.ce-about-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
  margin-bottom: 20px;
}

.ce-about-image {
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

/* Team section */
.ce-team-section {
  padding: 72px 10vw;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ce-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.ce-team-member img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 14px;
  filter: grayscale(30%);
}

.ce-team-member-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 4px;
}

.ce-team-member-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.ce-services-page-wrapper {
  min-height: 100vh;
  background: #0a0a0a;
}

.ce-services-list {
  padding: 0 10vw 80px;
}

.ce-service-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 48px;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  /* border-bottom removed */
  color: #fff;
  transition: background 0.2s;
  cursor: pointer;
}

.ce-service-row:hover {
  background: rgba(255,255,255,0.02);
  padding-left: 12px;
  margin-left: -12px;
}

.ce-service-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
}

.ce-service-title {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.ce-service-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.ce-service-arrow {
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  text-align: right;
  transition: transform 0.2s, color 0.2s;
}

.ce-service-row:hover .ce-service-arrow {
  transform: translateX(4px);
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.ce-contact-page {
  min-height: 100vh;
  background: #f8f7f5;
  color: #1a1a1a;
  padding-top: 90px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ce-footer {
  padding: 40px 10vw;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0a;
}

.ce-footer-logo {
  height: 24px;
  opacity: 0.5;
}

.ce-footer-copy {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.ce-footer-links {
  display: flex;
  gap: 24px;
}

.ce-footer-links a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.ce-footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   LOADING STATE (for JS-rendered pages)
   ============================================================ */
.ce-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .ce-nav { padding: 18px 24px; }
  .ce-nav-links { display: none; }
  .ce-nav-toggle { display: flex; }

  .ce-nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }

  .ce-nav-links.open a { font-size: 16px; letter-spacing: 4px; }

  .ce-home-tagline { letter-spacing: 3px; }

  .ce-page-header { padding: 120px 6vw 48px; }

  .ce-about-body { grid-template-columns: 1fr; }
  .ce-about-image { min-height: 300px; }

  .ce-service-row { grid-template-columns: 40px 1fr 40px; }
  .ce-service-text { display: none; }

  .ce-project-gallery { grid-template-columns: 1fr; }

  .ce-footer { flex-direction: column; gap: 16px; text-align: center; }
}
