/* ============================================
   DESIGN UPDATE OVERRIDES
   Implements the updated Figma design on top
   of the existing Webflow export.
   ============================================ */

/* --- Body & General --- */
html {
  background: #00151A !important;
  margin: 0 !important;
  scroll-behavior: auto !important;
}

body {
  background: var(--bg, #00151A) !important;
  margin: 0 !important;
}

body {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  grid-template-rows: auto auto auto auto auto !important;
  min-height: 100vh !important;
  margin: 0 3.75rem !important;
  position: relative !important;
}

.navigation-block {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
}

.section-1 {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
}

.section-2 {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  margin: 0 !important;
}

.section-3 {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
  margin: 0 !important;
}

.footer {
  grid-column: 1 / -1 !important;
  grid-row: 5 !important;
  margin: 0 !important;
}

/* --- Navigation --- */
.navigation-block {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  height: 6rem !important;
  padding: 1.5rem 2.25rem !important;
  border: 1px solid var(--border, #254046) !important;
  border-radius: 100px !important;
  background: linear-gradient(0deg, #001E24 0%, #002B33 100%), #002229 !important;
  z-index: 100 !important;
  box-sizing: border-box !important;
  flex-wrap: nowrap !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  margin-top: 1.5rem !important;
  align-self: start !important;
  position: relative !important;
  inset: unset !important;
}

.nav-left {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-shrink: 0 !important;
}

.nav-logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.nav-logo-icon {
  width: 1.75rem !important;
  height: 1.75rem !important;
  flex-shrink: 0 !important;
}

.nav-logo-text {
  font-family: Montserrat, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #F1FCFE !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.nav-right {
  display: flex !important;
  gap: 3rem !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.navigation-link {
  font-family: 'Roboto Mono', monospace !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  color: #F1FCFE !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.navigation-link:hover {
  text-decoration: underline !important;
}

.nav-resume-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.75rem 1.25rem !important;
  border: none !important;
  border-radius: 2.5rem !important;
  background: #ACD0D8 !important;
  color: #001E24 !important;
  font-family: 'Roboto Mono', monospace !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
}

.nav-resume-btn:hover {
  transform: translateY(-0.125rem);
}

.nav-resume-icon {
  width: 1.5rem !important;
  height: 1.5rem !important;
  flex-shrink: 0 !important;
}

/* --- Hide old header row --- */
.header {
  display: none !important;
}

/* --- Intro Section --- */
.section-1 {
  padding: 0 !important;
  background:
    radial-gradient(ellipse at center, rgba(5, 36, 42, 0.4) 0%, #00151A 100%),
    radial-gradient(circle, var(--text-mid, #ACD0D8) 0.5px, transparent 0.5px) !important;
  background-size: 100% 100%, 0.5rem 0.5rem !important;
  background-position: 0 0, 0 0 !important;
  height: 80svh !important;
  min-height: 80svh !important;
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(12, 1fr) !important;
  align-items: start !important;
  gap: 3rem !important;
  margin: 0 -3.75rem 0 -3.75rem !important;
  padding: 12.5rem 3.75rem 0 3.75rem !important;
  position: relative !important;
}

.intro {
  display: contents !important;
}

.profile-badge-image {
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin-right: 0.5rem !important;
}

.section-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.125rem !important;
  color: #ACD0D8 !important;
  text-transform: uppercase !important;
  margin-bottom: 1.5rem !important;
  text-align: left !important;
  grid-column: 1 / 3 !important;
}

.layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 3rem !important;
  align-items: flex-start !important;
  text-align: left !important;
  grid-column: 3 / 9 !important;
}

.title {
  font-family: Montserrat !important;
  font-size: 4.5rem !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 110% !important;
  letter-spacing: -0.09rem !important;
  margin: 0 !important;
}

.title.page-load {
  opacity: 1 !important;
  transform: none !important;
  font-size: 3.5rem !important;
}

/* --- Hero Badges --- */
.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 0 !important;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-badge {
  display: flex !important;
  padding: 0.75rem 1.25rem !important;
  align-items: center !important;
  gap: 0.75rem !important;
  border-radius: 100px !important;
  border: 1px solid var(--border, #254046) !important;
  background: linear-gradient(0deg, #001E24 0%, #002B33 100%) !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: var(--text-mid, #ACD0D8) !important;
}

.hero-badge svg {
  color: var(--text-mid, #ACD0D8) !important;
  flex-shrink: 0 !important;
  width: 1rem !important;
  height: 1rem !important;
}

/* --- Work Section --- */
.section-2 {
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 3rem !important;
}

.section-2 .section-title {
  grid-column: 1 / 2 !important;
  align-self: start !important;
}

.project-card-featured {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  position: relative !important;
}

.project-card-image::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0) !important;
  border-radius: 1.5rem !important;
  z-index: 1 !important;
  transition: background 0.4s ease !important;
}


.section-2 > .project-card-featured {
  grid-column: 2 / 12 !important;
}

.project-cards-grid {
  grid-column: 2 / 12 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
}

.project-cards-grid .project-card-image {
  height: 110% !important;
}

.project-card-featured,
.project-card {
  position: relative !important;
}

.project-card-image::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0) !important;
  pointer-events: none !important;
  z-index: 10 !important;
  transition: background 0.3s ease !important;
}

.section-2:has(.project-card-featured:hover) .project-card-featured:not(:hover) .project-card-image::after,
.section-2:has(.project-card-featured:hover) .project-card:not(:hover) .project-card-image::after,
.project-cards-grid:has(.project-card:hover) .project-card:not(:hover) .project-card-image::after,
.work-grid-bottom:has(.project-card:hover) .project-card:not(:hover) .project-card-image::after {
  background: rgba(0, 0, 0, 0.5) !important;
}

.section-2:has(.project-card-featured:hover) .project-card-featured:not(:hover) .project-card-title,
.section-2:has(.project-card-featured:hover) .project-card:not(:hover) .project-card-title,
.project-cards-grid:has(.project-card:hover) .project-card:not(:hover) .project-card-title,
.work-grid-bottom:has(.project-card:hover) .project-card:not(:hover) .project-card-title {
  color: rgba(241, 252, 254, 0.5) !important;
}

.section-2:has(.project-card-featured:hover) .project-card-featured:not(:hover) .project-card-description,
.section-2:has(.project-card-featured:hover) .project-card:not(:hover) .project-card-description,
.project-cards-grid:has(.project-card:hover) .project-card:not(:hover) .project-card-description,
.work-grid-bottom:has(.project-card:hover) .project-card:not(:hover) .project-card-description {
  color: rgba(172, 208, 216, 0.5) !important;
}

.project-card-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.25rem !important;
  text-align: left !important;
}

.project-card-title {
  color: var(--text, #F1FCFE) !important;
  font-family: Montserrat !important;
  font-size: 1.5rem !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: normal !important;
  margin: 0 !important;
}

.project-card-description {
  color: var(--text-mid, #ACD0D8) !important;
  font-family: Montserrat !important;
  font-size: 1.5rem !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: normal !important;
  margin: 0 !important;
}

.project-card-image {
  width: 100% !important;
  height: 37.5rem !important;
  background: linear-gradient(0deg, #A7EFFD 0%, #09B7D9 100%) !important;
  border-radius: 1.5rem !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.section-2 > .project-card-featured .project-card-image {
  background: linear-gradient(180deg, #C3F4FE 0%, #58D7F1 100%) !important;
}

.project-cards-grid .project-card-featured .project-card-image {
  background: linear-gradient(180deg, #1CC0E0 0%, #027F98 100%) !important;
}

.section-2 > .project-card-featured .project-card-image {
  aspect-ratio: 2 / 1 !important;
  height: auto !important;
}

.project-cards-grid .project-card-featured .project-card-image {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
}

.project-image-placeholder {
  position: absolute !important;
  top: 5rem !important;
  left: 5rem !important;
  width: calc(100% + 20rem) !important;
  height: auto !important;
  object-fit: contain !important;
  z-index: 0 !important;
  border-radius: 1.5rem !important;
  transition: transform 0.3s ease !important;
}

.project-card-image {
  overflow: hidden !important;
}

.project-card-featured:hover .project-image-placeholder,
.project-card:hover .project-image-placeholder {
  transform: translate(-1rem, -1rem) !important;
}

.case-study-btn {
  display: flex !important;
  padding: 0.75rem 1.25rem !important;
  align-items: center !important;
  gap: 0.25rem !important;
  border-radius: 2.5rem !important;
  border: 2px solid var(--text-mid, #ACD0D8) !important;
  background: var(--text, #F1FCFE) !important;
  color: var(--text-dark, #00151A) !important;
  font-family: 'Roboto Mono' !important;
  font-size: 1.25rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: normal !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  leading-trim: both !important;
  text-edge: cap !important;
  position: relative !important;
  z-index: 1 !important;
}

.project-card-featured:hover .case-study-btn,
.project-card:hover .case-study-btn {
  transform: translateY(-0.5rem) !important;
}


.case-study-btn svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
  color: var(--text-dark, #00151A) !important;
}

/* --- Project Cards — image-first layout --- */
.project-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  text-decoration: none !important;
  color: var(--text) !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
}

.project-card-featured {
  margin-bottom: 1rem !important;
}

.project-cards-left {
  padding: 0 !important;
  width: 100% !important;
}

.project-cards-left .tags,
.project-cards-left .button {
  display: none !important;
}

.card-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 4px 0 !important;
  color: var(--text) !important;
}

.card-sub-heading {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--text-dark) !important;
  margin: 0 !important;
}

/* --- Image Container --- */
.project-cards-right {
  position: relative !important;
  border-radius: 0.75rem !important;
  overflow: hidden !important;
  border: none !important;
  background: #22D3EE !important;
  height: 25rem !important;
  width: 100% !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
}

/* Subtle glow effect on the card border */
.project-card:hover .project-cards-right {
  border-color: rgba(0, 180, 216, 0.45) !important;
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.08) !important;
}

/* VIEW CASE STUDY overlay button */
.project-cards-right::after {
  content: 'VIEW CASE STUDY  \2197';
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(5, 36, 42, 0.8);
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  border: 1px solid var(--divider);
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09375rem;
  color: var(--text);
  pointer-events: none;
  transition: all 0.3s ease;
}

.project-card:hover .project-cards-right::after {
  background: rgba(0, 180, 216, 0.15);
  border-color: rgba(0, 180, 216, 0.4);
}

.interface-image {
  display: none !important;
}

.project-card:hover .interface-image {
  transform: scale(1.02);
}

/* --- Bottom two cards — side by side grid --- */
.work-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* --- Experience Section --- */
.section-3 {
  padding: 0 !important;
  margin: 0 !important;
  margin-top: 8rem !important;
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 3rem !important;
}

.section-3 .section-title {
  grid-column: 1 / 2 !important;
  align-self: start !important;
}

.work-experience {
  grid-column: 2 / 12 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.experience-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2.5rem !important;
  padding: 2.5rem 0 !important;
  border-bottom: 1px solid var(--divider) !important;
}

/* --- Footer --- */
.footer {
  padding: 3.75rem 2.5rem !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 991px) {
  .navigation-block {
    padding: 1.25rem 2rem !important;
    height: 5rem !important;
  }

  .nav-logo-text {
    font-size: 1.125rem;
  }

  .nav-right {
    gap: 2.5rem !important;
  }

  .navigation-link {
    font-size: 1rem !important;
  }

  .nav-resume-btn {
    padding: 0.625rem 1rem;
    font-size: 1rem;
  }

  .section-1 {
    padding: 5rem 2.5rem !important;
    min-height: auto !important;
  }

  .title {
    font-size: 2.625rem !important;
  }

  .intro {
    gap: 2.25rem !important;
  }

  .layout {
    gap: 2.25rem !important;
  }

  .section-2 {
    padding: 1.5rem 1.5rem 3.75rem !important;
  }

  .section-3 {
    padding: 2.5rem 1.5rem 3.75rem !important;
  }

  .footer {
    padding: 2.5rem 1.5rem !important;
  }
}

/* --- Hamburger Button (hidden on desktop) --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #F1FCFE;
  border-radius: 2px;
}

/* --- Mobile Menu Overlay (hidden by default) --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 26, 0.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.mobile-menu-link {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.5rem;
  font-weight: 400;
  color: #F1FCFE;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.mobile-menu-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2.5rem;
  background: #ACD0D8;
  color: #001E24;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.25rem;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 1rem;
}

@media screen and (max-width: 767px) {
  /* --- Body grid: remove side margins --- */
  body {
    margin: 0 1rem !important;
  }

  /* --- Navigation: hamburger mode --- */
  .navigation-block {
    padding: 1rem 1.25rem !important;
    height: auto !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    margin-top: 1rem !important;
    border-radius: 3.75rem !important;
  }

  .nav-right .navigation-link,
  .nav-right .nav-resume-btn {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .nav-left {
    gap: 0.5rem;
  }

  .nav-logo-text {
    font-size: 1rem;
  }

  /* --- Intro Section: single column --- */
  .section-1 {
    grid-template-columns: 1fr !important;
    padding: 6rem 1.5rem 3rem 1.5rem !important;
    margin: 0 -1rem !important;
    min-height: auto !important;
    height: auto !important;
    gap: 1.5rem !important;
  }

  .section-1 .section-title {
    grid-column: 1 / -1 !important;
  }

  .section-1 .layout {
    grid-column: 1 / -1 !important;
  }

  .title,
  .title.page-load {
    font-size: 2rem !important;
  }

  .layout {
    gap: 2rem !important;
  }

  .hero-badges {
    gap: 0.75rem;
  }

  .hero-badge {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  /* --- Work Section: single column --- */
  .section-2 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .section-2 .section-title {
    grid-column: 1 / -1 !important;
  }

  .section-2 > .project-card-featured {
    grid-column: 1 / -1 !important;
  }

  .project-cards-grid {
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .project-card-title {
    font-size: 1.25rem !important;
  }

  .project-card-description {
    font-size: 1rem !important;
  }

  .case-study-btn {
    font-size: 1rem !important;
    padding: 0.625rem 1rem !important;
  }

  .project-image-placeholder {
    top: 3rem !important;
    left: 3rem !important;
  }

  .work-grid-bottom {
    grid-template-columns: 1fr;
  }

  /* --- Experience Section: single column --- */
  .section-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 4rem !important;
  }

  .section-3 .section-title {
    grid-column: 1 / -1 !important;
  }

  .work-experience {
    grid-column: 1 / -1 !important;
  }

  .experience-row {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    padding: 1.5rem 0 !important;
  }

  /* --- Footer: stacked --- */
  .footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    padding: 2.5rem 1rem !important;
  }

  .footer-group {
    width: 100% !important;
  }
}

@media screen and (max-width: 479px) {
  body {
    margin: 0 0.75rem !important;
  }

  .navigation-block {
    padding: 0.75rem 1rem !important;
    margin-top: 0.75rem !important;
  }

  .nav-logo-text {
    font-size: 0.875rem;
  }

  .section-1 {
    padding: 5rem 1rem 2.5rem 1rem !important;
    margin: 0 -0.75rem !important;
    gap: 1rem !important;
  }

  .title,
  .title.page-load {
    font-size: 1.75rem !important;
  }

  .layout {
    gap: 1.75rem !important;
  }

  .hero-badge {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  .section-2 {
    gap: 1rem !important;
  }

  .section-3 {
    margin-top: 3rem !important;
  }

  .footer {
    padding: 2rem 0.75rem !important;
  }
}

/* Base font-size scaling */
html {
  font-size: 16px;
}

@media screen and (max-width: 1800px) {
  html {
    font-size: 15px !important;
  }
}

@media screen and (max-width: 1024px) {
  html {
    font-size: 14px !important;
  }
}
