/* =========================================================
RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
}

section {
  width: 100%;
  padding: 120px 60px;
  position: relative;
}

/* =========================================================
CONTAINER
========================================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================================================
NAV
========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
}

.nav-hamburger {
  cursor: pointer;
}

/* =========================================================
MOBILE MENU
========================================================= */
#mobileMenu {
  position: fixed;
  inset: 0;
  background: #000;
  transform: translateY(-100%);
  transition: .4s;
  z-index: 999;
}

#mobileMenu.open {
  transform: translateY(0);
}

/* =========================================================
HERO
========================================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

/* =========================================================
SERVICES / EXPERIENCE / FAQ / REVIEWS
========================================================= */
#services,
#experience,
#faq,
#reviews {
  display: block;
}

/* =========================================================
CASES GRID
========================================================= */
#cases {
  padding-top: 160px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.case-card {
  background: #111;
  padding: 30px;
  cursor: pointer;
  transition: .3s;
  border: 1px solid rgba(255,255,255,0.05);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
}

/* =========================================================
MODAL BASE
========================================================= */
#caseModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 2000;
}

#caseModal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
MODAL CONTAINER
========================================================= */
.case-modal-content {
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: #0d0d0d;
  overflow-y: auto;
  border-radius: 12px;
}

/* =========================================================
MODAL HERO
========================================================= */
.case-modal-hero {
  height: 260px;
  position: relative;
}

/* =========================================================
MODAL BODY
========================================================= */
.case-modal-body {
  padding: 60px;
}

/* =========================================================
MODAL TEXT
========================================================= */
.case-modal-meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  opacity: 0.6;
}

.case-modal-title {
  font-size: 42px;
  margin: 20px 0;
}

.case-modal-tagline {
  font-size: 18px;
  opacity: 0.7;
  margin-bottom: 40px;
}

/* =========================================================
CASE SECTION
========================================================= */
.case-section {
  margin-top: 60px;
}

.case-section-label {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 10px;
}

.case-section-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.case-section-text {
  opacity: 0.7;
  line-height: 1.6;
}

.case-section-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 40px 0;
}

/* =========================================================
IMAGES GRID
========================================================= */
.case-interfaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-interface-item.wide {
  grid-column: span 2;
}

.case-interface-item img {
  width: 100%;
  border-radius: 6px;
}

/* =========================================================
CLOSE BUTTON
========================================================= */
.case-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 20px;
}

/* =========================================================
RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 80px 30px;
  }
}

@media (max-width: 640px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-modal-body {
    padding: 30px;
  }

  .case-modal-title {
    font-size: 28px;
  }
}