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

body {
  background-color: #000;
  color: #fff;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --accent: #2e6bff;
  --accent-dark: #0052cc;
  --bg-dark: #000;
  --card-bg: rgba(51, 53, 59, 1); 
  --glass-grad: linear-gradient(180deg,
      rgba(20, 20, 30, 0.95) 0%,
      rgba(10, 10, 20, 0.95) 100%);
  --muted: #ccc;
  --container-desktop: 80%;
  /* Desktop container width (you chose A) */
  --header-h: 74px;
  --page-margin: 80px;
  --page-margin-tablet: 40px;
  --page-margin-mobile: 20px;
}

/* prevent content hiding behind fixed header */
main {
  margin: 10%;
  margin-bottom: 0;
}
.ifc-hero {
  display: flex;
  gap: 24px;
  /* align-items: center; */
  justify-content: space-between;
  background: var(--card-bg);
  border-radius: 28px;
  margin: 0;
  margin-bottom: 5%;
  background-image: url("../images/navbar/waves.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.ifc-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.ifc-left,
.ifc-right {
  position: relative;
  z-index: 2;
}

.ifc-left {
  flex: 1;
  min-width: 260px;
  padding-left: 30px;
  padding-top:40px;
}

.ifc-left h1 {
  margin: 0;
}

.ifc-left span {
  color: var(--accent);
}

.ifc-left p {
  /* margin-top: 20px; */
  color: rgba(255, 255, 255, 0.88);
  padding-left: 10px;
  padding-right: 10px;
  margin-top:10px;
}

.blue-btn {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 22px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
    margin-top:10px;
}

.blue-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(46, 107, 255, 0.4);
}

.ifc-right {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ifc-right img {
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.center-text {
  text-align: center;
}

/* ==================== TEXT HEADINGS ==================== */
.text {
  margin: 0;
  margin-bottom: 3%;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.text .left {
  flex-basis: 60%;
}

.text .right {
  flex-basis: 40%;
}

.text .left h2 {
  margin: 0;
}

.text .left h2 span {
  color: var(--accent);
}

.subtext {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* ==================== CAPABILITIES GRID ==================== */
.ifc-capabilities-section {
  width: 100%;
}

.ifc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  margin-bottom: 5%;
}

.ifc-box {
  background: radial-gradient(90.16% 143.01% at 15.32% 21.04%,
      rgba(165, 239, 255, 0.12) 0%,
      rgba(110, 191, 244, 0.03) 77%,
      rgba(70, 144, 213, 0) 100%);
  border: 1px solid rgba(152, 249, 255, 1);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.3s ease;
}

.ifc-box:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(46, 107, 255, 0.15);
  transform: translateY(-5px);
}

.ifc-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.ifc-box h3 {
  color: #fff;
  margin-bottom: 12px;
}

.ifc-box p {
  color: var(--muted);

}

/* ==================== WORKFLOW & FORMATS ==================== */
.ifc-details {
  margin: 0;
  margin-bottom: 5%;
}

.workflow-container {
  display: flex;
  /* gap: 40px; */
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(152, 249, 255, 1);
  align-items: stretch;
  background: radial-gradient(90.16% 143.01% at 15.32% 21.04%,
      rgba(165, 239, 255, 0.15) 0%,
      rgba(110, 191, 244, 0.05) 77%,
      rgba(70, 144, 213, 0) 100%);
}

.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 0 0 45%;
}

.workflow-list li {
  margin-top: 20px;
  margin-left: 80px;
  margin-bottom: 34px;
  color: #dbe4ff;
  display: flex;
  gap: 16px;
  align-items: center;
}

.workflow-list i {
  color: var(--accent);
  font-size: 1.2rem;
  min-width: 24px;
}

.workflow-list .blue-btn {
  margin-left: 90px;
  margin-top: 32px;
}

.ifc-card {
  flex: 1;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* desktop default */
  gap: 16px;
}

.format {
  border-radius: 16px;
  border: 1px solid rgba(152, 249, 255, 1);
  background: radial-gradient(90.16% 143.01% at 15.32% 21.04%,
      rgba(165, 239, 255, 0.15) 0%,
      rgba(110, 191, 244, 0.05) 77%,
      rgba(70, 144, 213, 0) 100%);
  padding: 24px;
  gap: 6px;
}

.format-box {
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(152, 249, 255, 1);
  transition: all 0.3s ease;
}

.format-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
}

.format-box h3 {
  margin: 0;
  color: #e5f0ff;
}

.format-box p {
  margin: 6px 0 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.model {
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(152, 249, 255, 1);
  background: radial-gradient(90.16% 143.01% at 15.32% 21.04%,
      rgba(165, 239, 255, 0.2) 0%,
      rgba(110, 191, 244, 0.0448) 77%,
      rgba(70, 144, 213, 0) 100%);
}

.model {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: capitalize;
  color: #fff;
}

.performance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.performance p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.performance p.para:not(:last-child) {
  margin-bottom: 8px;
}

/* ==================== RESPONSIVE STYLES ==================== */

@media (min-width: 1091px) and (max-width: 1399px) {
  .ifc-right img {
    max-width: 470px;
    /* max-height:400px; */
  }
  .ifc-box {
    padding: 30px 10px;
  }
}
@media(min-width:1025px) and (max-width:1090px){
  .ifc-right img {
    max-width: 500px;
  }
  .ifc-left {
  flex: 1;
  min-width: 260px;
  padding-left: 30px;
  padding-top:10px!important;
}
.ifc-heading{
  margin-top:20px;
}
.ifc-left p {
  /* margin-top: 20px; */
  color: rgba(255, 255, 255, 0.88);
  padding-left: 10px;
  padding-right: 30px;
  margin-top:10px;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
  .ifc-grid {
    display: flex;
    justify-content: center;
    /* center all boxes horizontally */
    gap: 15px;
    /* slightly smaller gap */
    max-width: 1000px;

  }

  .ifc-box {
    flex: 0 0 23%;
    /* slightly smaller width per box */
    max-width: 23%;
    text-align: center;
    padding: 18px;
    box-sizing: border-box;
  }

  .ifc-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }
}

@media (max-width: 1024px) {
  main {
    margin-left: 5%;
    margin-right: 5%;
    }
  .ifc-hero {
    flex-direction: column;
    text-align: center;
    margin: 0;
    margin-top: 120px;
    margin-bottom: 5%;
    gap: 0;
    padding-bottom: 0;
  }

  .ifc-left {
    padding-left: 0;
  }
    .ifc-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;           /* space between IFC and Viewer */
    white-space: nowrap;
  }
.ifc-left p {
  /* margin-top: 20px; */
  color: rgba(255, 255, 255, 0.88);
  padding-left: 30px;
  padding-right: 30px;
  margin-top:10px;
}
.ifc-right img {
  max-width: 70%;
  height: auto;
  border-radius: 10px;
  display: block;
  /* margin-top:20px; */
}
  .workflow-container {
    flex-direction: column;
    padding: 30px 20px;
  }

  .workflow-list {
    flex: 1;
    margin-bottom: 30px;
  }

  .ifc-card {
    padding: 0;
  }

  .workflow-list {
    flex: 0 0 100%;
    /* optional: full width on mobile */
  }

  .workflow-list li {
    margin-left: 5px !important;
    /* override previous 20% */
    margin-bottom: 16px;
    /* adjust spacing if needed */
    gap:10px;
  }

  .workflow-list .blue-btn {
    margin-left: 5px !important;
    /* optional if button was shifted */
  }

  .ifc-details {
    margin-bottom: 20px;
  }

  .ifc-capabilities-section {
    margin-bottom: 5%;
  }
  .ifc-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;           /* space between IFC and Viewer */
    white-space: nowrap;
  }

  .ifc-heading .main-heading {
    margin: 0;
  }
}

@media (max-width: 991px) {
  .ifc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
  }
  .ifc-right img {
  max-width: 70%!important;
  height: auto;
  border-radius: 10px;
  display: block;
}
  .workflow-list {
    flex: 0 0 100%;
    /* optional: full width on mobile */
  }

  .workflow-list li {
    margin-left: 5px !important;
    /* override previous 20% */
    margin-bottom: 16px;
    /* adjust spacing if needed */
  }

  .workflow-list .blue-btn {
    margin-left: 5px !important;
    /* optional if button was shifted */
  }

  .ifc-box {
    min-width: 100%;
  }
}

@media (max-width: 767px) {
  :root {
    --page-margin: var(--page-margin-mobile);
  }

  .ifc-hero {
    margin-bottom: 8%;
  }

  .ifc-capabilities-section {
    margin-bottom: 8%;
  }

  .ifc-details {
    margin-bottom: 8%;
  }
  .ifc-grid{
        gap:10px;
  }

  .text {
    flex-direction: column;
    /* stack left and right vertically */
    align-items: center;
    /* center the items horizontally */
    gap: 16px;
    text-align: center;
    /* center text inside each box */
  }

  .text .left,
  .text .right {
    flex-basis: auto;
    /* let them size based on content */
    width: 100%;
    /* optional: full width, remove if you want them shrink to content */
    max-width: 500px;
    /* optional: limit the width on larger mobile screens */
  }
}

@media (max-width: 575px) {
  .formats {
    grid-template-columns: repeat(2, 1fr);
  }
    .ifc-right img {
  max-width: 90%!important;
  height: auto;
  border-radius: 10px;
  display: block;
}
}

@media (max-width: 375px) {
  .ifc-grid {
    display: grid;
    /* change flex → grid */
    grid-template-columns: repeat(1, 1fr);
    /* 1 column */
    gap: 12px;
  }

  .formats {
    grid-template-columns: 1fr;
  }
}