/* ============================================================
   GLOBAL & LAYOUT RESETS
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-overflow-scrolling: touch; 
  overflow-x: hidden; /* Moved here to prevent horizontal scroll without breaking sticky */
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}
   .portfolio-page,
.portfolio-page * {
  box-sizing: border-box;
}

.portfolio-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: sans-serif;
}

/* ============================================================
   NAVIGATION 
   ============================================================ */
.nav-menu {
  display: none; 
  width: 100% !important;
  max-width: 1280px !important;
  position: fixed; 
  top: 20px; 
  left: 50%;
  transform: translateX(-50%) !important;
  z-index: 9999;
}
.nav-menu.active {
  display: flex;
  flex-direction: column;
}
.fixed-nav-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  padding: 0 20px;
  z-index: 9998;
  box-sizing: border-box;
}
.nav-bar {
  background: #fdfdfd;
  border-radius: 20px;
  padding: 20px 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between; 
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
}
.nav-menu .nav-bar {
  border-radius: 20px 20px 0px 0px;
}
.frame-178, .frame-177 {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
}
.logo { height: 35px; display: flex; align-items: center; }
.logo .group { height: 100%; }
.frame-72 {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: flex-start;
}
.button, .button2 {
  background: #181818;
  border-radius: 20px;
  padding: 16px 30px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 4px 4px 1px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.button:hover, .button2:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.get-in-touch, .get-in-touch-btn, .get-in-touch2 {
  color: #fdfdfd;
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}
.frame-40 {
  background: rgba(255, 70, 50, 0.9);
  border-radius: 0px 0px 20px 20px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.frame-21 {
  background: #f6f6f6;
  border-radius: 10px;
  border: 0.5px solid rgba(70, 70, 70, 0.4);
  padding: 0px 10px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  width: 100%;
  height: 60px;
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none; 
  color: #181818;
  font-size: 20px;
}
.frame-73 { display: flex; flex-direction: row; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; width: 100%; }
.menu-link { font-size: 32px; color: #fdfdfd; font-weight: 500; cursor: pointer; text-decoration: none; transition: opacity 0.2s ease; }
.menu-link:hover { opacity: 0.7; }

/* ============================================================
   MOBILE NAVIGATION CONTROLS
   ============================================================ */
@media (max-width: 768px) {
  .nav-bar { padding: 12px 20px !important; border-radius: 16px; }
  .logo { height: 26px !important; }
  .frame-72 { gap: 12px !important; }
  .button2, .button { padding: 10px 16px !important; border-radius: 12px !important; }
  .get-in-touch2, .get-in-touch { font-size: 14px !important; line-height: 1.2 !important; }
  .icons, .icons3, #openMenuBtn, #closeMenuBtn { width: 24px !important; height: 24px !important; display: flex; align-items: center; justify-content: center; }
  .frame-19 { display: none !important; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.portfolio-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 20px 80px 20px;
  overflow: hidden;
  background: #f5f5f5;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  max-width: 950px;
}
.shaping-the-future {
  color: #181818;
  font-family: "Montserrat-Bold", sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 700;
}
.hero-subtitle {
  color: #181818;
  font-family: "BeautifullyDeliciousSans-Regular", sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
  font-weight: 400;
}

/* Floating Images */
.hero-img {
  position: absolute;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8; 
}
.img-1 { width: 35vw; max-width: 480px; left: -5%; bottom: 5%; transform: rotate(34deg); }
.img-2 { width: 35vw; max-width: 500px; right: -10%; bottom: -10%; transform: rotate(-31deg); }
.img-3 { width: 35vw; max-width: 500px; left: 10%; top: -10%; transform: rotate(140deg); }
.img-4 { width: 35vw; max-width: 500px; right: 5%; top: -5%; transform: rotate(-145deg); }

/* ============================================================
   PORTFOLIO GRID & FILTERS
   ============================================================ */
.portfolio-main-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
}
.featured-works-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}
.featured-works {
  color: #181818;
  font-family: "Montserrat-Bold", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
}
.category-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  width: 100%;
}
.filter-btn {
  background: #fdfdfd;
  border: 1px solid rgba(70, 70, 70, 0.2);
  border-radius: 20px;
  padding: 12px 24px;
  color: rgba(0, 0, 0, 0.5);
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover { background: #f0f0f0; color: #181818; }
.filter-btn.active { background: #181818; color: #ffffff; border-color: #181818; }

/* Responsive Grid */
.portfolio-grid {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 40px;
  position: relative;
}
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* Empty State Message */
.empty-state {
  display: none; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1; 
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px dashed rgba(70, 70, 70, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-text {
  color: rgba(70, 70, 70, 0.6);
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 20px;
  text-align: center;
}

/* Portfolio Cards */
.portfolio-card {
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  text-decoration: none; 
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.3s ease;
  will-change: transform, opacity;
}
.portfolio-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.card-image-wrapper {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .card-img { transform: scale(1.05); }
.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-header { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.inovo-works {
  color: rgba(70, 70, 70, 0.6);
  font-family: "Montserrat-Bold", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.card-title {
  color: #181818;
  font-family: "Montserrat-Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
}
.card-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
.tag {
  background: #c0c2f5;
  border: 1px solid #696ef0;
  border-radius: 20px;
  padding: 6px 16px;
  color: rgba(2, 6, 111, 0.8);
  font-family: "Montserrat-Medium", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* Classified Project Styles */
.classified-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(2, 6, 111, 0.9);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: "Montserrat-SemiBold", sans-serif;
  font-size: 14px;
  z-index: 10;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.classified-tag {
  background: rgba(255, 70, 50, 0.1) !important;
  border-color: #ff4632 !important;
  color: #ff4632 !important;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.get-in-touch-section {
  padding: 100px 20px; 
  display: flex; 
  justify-content: center; 
  align-items: center;
  width: 100%;
}
.frame-29 {
  background: #ff4632; 
  border-radius: 20px; 
  padding: 60px 40px;
  max-width: 1000px; 
  width: 100%; 
  text-align: center;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 24px;
}
.ready-to-build-something-exceptional { 
  color: #fff; 
  font-family: "Montserrat-Bold", sans-serif; 
  font-size: clamp(32px, 4vw, 48px); 
}
.let-s-turn-your-complex-challenges-into-market-ready-products-reach-out-to-our-design-and-engineering-team-to-start-the-conversation {
  color: #fff; 
  font-size: 20px; 
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #181818 69%, #7e7e7e 100%);
  padding: 80px 20px 40px 20px;
  display: flex; 
  justify-content: center;
  width: 100%;
}
.footer-container {
  width: 100%; 
  max-width: 1280px; 
  display: flex; 
  flex-direction: column; 
  gap: 60px;
}
.frame-84 { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.frame-82 { display: flex; flex-direction: column; gap: 12px; }
.frame-82 .footer-link { margin-bottom: 0; }
.frame-89 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; width: 100%; }
.logo2 img { max-width: 200px; }
.logo-2 { padding: 0px 5px 0px 5px; display: flex; flex-direction: column; gap: 13px; align-items: flex-start; justify-content: flex-start; flex-shrink: 0; height: 67.95px; position: relative; }
.navigate, .follow, .location, .for-inquiries { 
  color: rgba(255,255,255,0.7); 
  font-family: "Montserrat-SemiBold", sans-serif;
  font-weight: 600; 
  margin-bottom: 16px; 
  font-size: 18px; 
}
.footer-link { 
  color: #fff; 
  font-family: "BeautifullyDeliciousSans-Regular", sans-serif;
  font-size: 16px; 
  margin-bottom: 10px; 
  cursor: pointer; 
  text-decoration: none;
  display: inline-block;
}
.footer-link:hover { opacity: 0.7; }
.frame-87, .frame-88, .frame-822, .frame-83 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.frame-832 { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }
._2026-inovo-industrial-design-development { color: rgba(255,255,255,0.6); font-family: "BeautifullyDeliciousSans-Regular", sans-serif; font-size: 14px; }

/* ============================================================
   ANIMATIONS & EFFECTS
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}
.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
