@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/*Section background */
.developmentSection {
  height: 100vh;
  width: 100%;
  background-color: #F9FAFB;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 10vh;
  padding-top: 5vh;
}

.first-level-hr {
  height: 2px;
  width: 150px;
  color: grey;
  margin-bottom: 0.2vh;
}

/* Container for the graph */ 
.graphContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #F9FAFB;
  margin-top: 5vh;
  width: 100;
}

/* Style for each node */
.graphNode {
  position: absolute;
  background: #ffffff;
  color: #1f2937;
  border: none;
  border-top: 4px solid #3b82f6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-direction: column;
}

/* Text Styles */
.graphNode h1,
.graphNode h2,
.graphNode h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

.top-node h1 {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.bottom-node h2 {
  font-size: 1.125rem;
  letter-spacing: 0.025em;
}

.third-node h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Hover style for the top node */
.graphNode.top-node:hover {
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Top node style */
.top-node {
  width: 500px;
  height: fit-content;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
}

/* Style for all bottom nodes */
.bottom-node {
  width: 220px;
  height: fit-content;
}

/* Positioning for all nodes */
#bottom1 {
  top: calc(20px + 100px + 50px + 4px + 50px);
  left: calc(50% - 600px - 110px);
}

#bottom2 {
  top: calc(20px + 100px + 50px + 4px + 50px);
  left: calc(50% - 200px - 110px);
}

#bottom3 {
  top: calc(20px + 100px + 50px + 4px + 50px);
  left: calc(50% + 200px - 110px);
}

#bottom4 {
  top: calc(20px + 100px + 50px + 4px + 50px);
  left: calc(50% + 600px - 110px);
}

/* All lines connecting each node */
.line,
.line2 {
  position: absolute;
  background-color: rgba(59,130,246,0.8);
}

.line.vertical {
  width: 4px;
  height: 50px;
  top: calc(20px + 100px);
  left: 50%;
  transform: translateX(-50%);
}

.line.horizontal-left {
  height: 4px;
  width: 600px;
  top: calc(20px + 100px + 50px);
  left: 50%;
  transform: translateX(-100%);
}

.line.horizontal-right {
  height: 4px;
  width: 600px;
  top: calc(20px + 100px + 50px);
  left: 50%;
  transform: translateX(0);
}

.line.branch-down1 {
  width: 4px; height: 50px;
  top: calc(20px + 100px + 50px);
  left: calc(50% - 200px);
}

.line.branch-down2 {
  width: 4px; height: 50px;
  top: calc(20px + 100px + 50px);
  left: calc(50% - 600px);
}

.line.branch-down3 {
  width: 4px; height: 50px;
  top: calc(20px + 100px + 50px);
  left: calc(50% + 600px);
}

.line.branch-down4 {
  width: 4px; height: 50px;
  top: calc(20px + 100px + 50px);
  left: calc(50% + 200px);
}

.bottom-node .vertical2 {
  width: 4px;
  height: 40px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.bottom-node .horizontal2 {
  height: 4px;
  width: 180px;
  top: calc(100% + 40px);
  left: 50%;
  transform: translateX(-90px);
}

.bottom-node .branch-left2 {
  width: 4px;
  height: 40px;
  top: calc(100% + 40px);
  left: calc(50% - 90px);
}

.bottom-node .branch-right2 {
  width: 4px;
  height: 40px;
  top: calc(100% + 40px);
  left: calc(50% + 90px);
}

/* Third layer of nodes (final layer) */
.third-node {
  position: absolute;
  width: 120px;
  height: 230px;
  background: #ffffff;
  color: #1f2937;
  border: none;
  border-top: 4px solid #3b82f6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* SVG size on third nodes */
.third-node svg {
  height: 50px;
  width: 50px;
}

.bottom-node .child1 {
  top: calc(100% + 80px);
  left: calc(50% - 150px);
}

.bottom-node .child2 {
  top: calc(100% + 80px);
  left: calc(50% + 30px);
}

svg {
  height: 50px;
  width: 50px;
}

.graphNode svg {
  flex-shrink: 0;
}

.graphNode hr {
  width: 50px;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 0.5rem 0;
}

.graphNode:not(.top-node):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.centering {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Various sizing changes for mobile/tablet and everything in between (mostly scaling changes) */
@media (max-width: 1550px) {
  .graphContainer {
    transform: scale(0.8);
    height: 50vh;
    top: -10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .developmentSection {
    height: 80vh;
    width: 100%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 1200px) {
  .graphContainer {
    transform: scale(0.6);
    height: 50vh;
    top: -10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .developmentSection {
    height: 60vh;
    width: 100%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 930px) {
  .graphContainer {
    transform: scale(0.5);
    height: 50vh;
    top: -10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .developmentSection {
    height: 60vh;
    width: 100%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 790px) {
  .graphContainer {
    transform: scale(0.4);
    height: 60vh;
    top: -8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .developmentSection {
    height: 50vh;
    width: 100%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5vh;
    padding-bottom: 15vh;
  }
}

@media (max-width: 576px) {
  .graphContainer {
    transform: scale(0.3);
    height: 50vh;
    top: -5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .developmentSection {
    height: 40vh;
    width: 100%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .top-node {
    width: 350px;
    height: fit-content;
    padding: 1rem;
    z-index: 100;
  }

  .top-node h1 {
    font-size: 1.75rem;
  }

  .bottom-node {
    width: 200px;
    height: fit-content;
    padding: 1rem;
  }

  .bottom-node h2 {
    font-size: 1.5rem;
  }

  .third-node {
    width: 150px;
    height: 260px;
  }

  .third-node h3 {
    font-size: 1.25rem;
  }

  .line.vertical {
    width: 4px;
    height: 16px;
    top: calc(20px + 135px);
    left: 50%;
    transform: translateX(-50%);
  }
  .line.branch-down1 {
    width: 4px; height: 35px;
    top: calc(20px + 100px + 50px);
    left: calc(50% - 200px);
  }
  .line.branch-down2 {
    width: 4px; height: 35px;
    top: calc(20px + 100px + 50px);
    left: calc(50% - 600px);
  }
  .line.branch-down3 {
    width: 4px; height: 35px;
    top: calc(20px + 100px + 50px);
    left: calc(50% + 600px);
  }
  .line.branch-down4 {
    width: 4px; height: 35px;
    top: calc(20px + 100px + 50px);
    left: calc(50% + 200px);
  }
}

@media (max-width: 485px) {
  .graphContainer {
    transform: scale(0.25);
    height: 50vh;
    top: -5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .developmentSection {
    height: 40vh;
    width: 100%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .top-node {
    width: 300px;
    height: fit-content;
    padding: 1rem;
  }
  .bottom-node {
    width: 250px;
    height: 120px;
    padding: 1rem;
  }
  .third-node {
    width: 125px;
    height: 260px;
  }
}

@media (max-width: 400px) {
  .graphContainer {
    transform: scale(0.2);
    height: 50vh;
    top: -5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
  }

  .developmentSection {
    height: 40vh;
    width: 100%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .top-node {
    width: 300px;
    height: fit-content;
    padding: 1rem;
  }
  .bottom-node {
    width: 200px;
    height: 130px;
    padding: 1rem;
  }
  .third-node {
    width: 140px;
    height: 260px;
  }
}

@media screen and (max-width: 950px) and (orientation: landscape) {
  .developmentSection {
    height: 120vh;
    width: 100%;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .centering {
  display: flex;
  justify-content: center;
  align-items: center;
}

.graphContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #F9FAFB;
  margin-top: -15vh;
  
  width: 100;
}
}

