
section {
  max-width: 1223px;
  margin: 0 auto;
}

header {
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
  gap: 6.8vw;
  padding-right: 5vw;
  margin-bottom: min(10.36vw, 199px);
}

.header-img {
  width: 50%;
  padding: min(0.78vw, 15px);
  padding-left: 0;
  /* Box Shadow */
  -webkit-box-shadow: 1px 4px 4px 0px rgba(0,0,0,0.25);
  -moz-box-shadow: 1px 4px 4px 0px rgba(0,0,0,0.25);
  box-shadow: 1px 4px 4px 0px rgba(0,0,0,0.25);
  -webkit-border-top-right-radius: 2.03vw;
  -moz-border-top-right-radius: 2.03vw;
  border-top-right-radius: 2.03vw;
  -webkit-border-bottom-right-radius: 2.03vw;
  -moz-border-bottom-right-radius: 2.03vw;
  border-bottom-right-radius: 2.03vw;
  position: relative;
  background-color: white;
}

/* Dotted Square */
body > header > div.header-img > div {
  top: 18vw;
}

.header-img img {
  width: 100%;
}

.header-text {
  width: 50%;
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  flex-direction: column;
  gap: 1.04vw;
  max-width: 610px;
}

body > header > div.header-text > h2 {
  font-size: min(3.125vw, 60px) !important;
}

.title {
  font-size: 20px;
  opacity: .2;
}

/* Responsive Header Styles */
@media (max-width: 1024px) {
  header {
    gap: 4vw;
    padding-right: 3vw;
    margin-bottom: min(8vw, 120px);
  }
  
  .header-img {
    -webkit-border-top-right-radius: 3vw;
    -moz-border-top-right-radius: 3vw;
    border-top-right-radius: 3vw;
    -webkit-border-bottom-right-radius: 3vw;
    -moz-border-bottom-right-radius: 3vw;
    border-bottom-right-radius: 3vw;
  }
  
  body > header > div.header-text > h2 {
    font-size: min(4vw, 45px) !important;
  }
  
  .header-text {
    gap: 2vw;
  }
}

@media (max-width: 768px) {
  header {
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;
    gap: 3rem;
    padding-right: 0;
    padding: 0 1rem;
    margin-bottom: min(12vw, 80px);
    -webkit-align-items: stretch;
    -moz-align-items: stretch;
    align-items: stretch;
  }
  
  .header-img {
    width: 100%;
    padding: 15px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    -webkit-border-top-right-radius: 20px;
    -moz-border-top-right-radius: 20px;
    border-top-right-radius: 20px;
    -webkit-border-bottom-right-radius: 20px;
    -moz-border-bottom-right-radius: 20px;
    border-bottom-right-radius: 20px;
    order: 2;
  }
  
  .header-text {
    width: 100%;
    max-width: none;
    gap: 1.5rem;
    text-align: center;
    order: 1;
  }
  
  body > header > div.header-text > h2 {
    font-size: min(6vw, 36px) !important;
    line-height: 1.2;
  }
  
  .title {
    font-size: 18px;
  }
  
  .header-text p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  header {
    gap: 2rem;
    margin-bottom: 60px;
  }
  
  .header-img {
    padding: 10px;
    border-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
  }
  
  .header-text {
    gap: 1rem;
  }
  
  body > header > div.header-text > h2 {
    font-size: min(7vw, 28px) !important;
  }
  
  .title {
    font-size: 16px;
  }
  
  .header-text p {
    font-size: 14px;
  }
}

/* Companies Section */
section#companies {
  display: flex;
  gap: min(2.92vw, 56px);
  align-items: center;
  margin-bottom: min(7.54vw, 146px);
}

.companies-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1.3vw;
  max-width: 574px;
}

.companies-imgs {
  width: 50%;
  display: flex;
  gap: min(1.04vw, 20px);
  max-width: 608px;
  justify-content: flex-end;
  position: relative;
}

#companies > div.companies-imgs > div:nth-child(3) {
  width: 20vw;
  top: -18vw;
  transform: rotate(90deg);
  right: 5vw;
}

#companies > div.companies-imgs > div:nth-child(4) {
  width: 22vw;
  height: 15vw;
  transform: rotate(-30deg);
  top: 10vw;
  right: 10vw;
}

.company-container img {
  width: 100%;
}

.company-container {
  width: 21.2vw;
  height: 18.59vw;
  border-radius: min(2.08vw, 40px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: min(1.04vw, 20px);
  position: relative;
  box-shadow: 1px 4px 4px 0px rgba(0,0,0,0.25);
  max-width: 297px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
}

.company-container:hover {
  transform: translateY(-5px);
  box-shadow: 2px 8px 15px 0px rgba(0,0,0,0.15);
}

/* Clickable logo cursor */
.company-container.clickable-logo:hover {
  cursor: pointer;
}

/* Krystal Institute logo container */
#companies > div.companies-imgs > div:nth-child(1) {
  top: -8vw;
}

/* CGGE logo container */
#companies > div.companies-imgs > div:nth-child(2) {
  align-self: flex-end;
  padding: min(3.64vw, 70px);
  bottom: -8vw;
}

#companies > div.companies-text > button {
  width: fit-content;
  margin-top: 2rem;
}

/* Responsive Companies Section */

@media (width <= 1310px) {
  section#companies {
    margin-left: 5vw;
    margin-right: 5vw;
  }
}

@media (max-width: 1024px) {
  section#companies {
    gap: min(3vw, 40px);
    margin-bottom: min(6vw, 120px);
    align-items: flex-start;
  }
  
  .companies-text {
    gap: 2vw;
  }
  
  .company-container {
    width: 18vw;
    height: 16vw;
    border-radius: min(2.5vw, 35px);
    max-width: 250px;
  }

  #companies > div.companies-imgs {
    align-self: center;
  }
}

@media (max-width: 768px) {
  section#companies {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    margin-bottom: 80px;
    padding: 0 1rem;
  }
  
  .companies-text {
    width: 100%;
    max-width: none;
    gap: 1.5rem;
    order: 1;
  }
  
  .companies-text h2 {
    font-size: min(5vw, 32px);
    line-height: 1.3;
  }
  
  .companies-text p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .companies-imgs {
    width: 100%;
    max-width: none;
    justify-content: center;
    gap: 2rem;
    order: 2;
    position: relative;
    padding: 2rem 0;
  }
  
  .company-container {
    width: 140px;
    height: 120px;
    border-radius: 25px;
    max-width: none;
    position: relative;
    top: 0 !important;
    bottom: 0 !important;
    align-self: center;
  }
  
  #companies > div.companies-imgs > div:nth-child(1) {
    top: 0 !important;
  }
  
  #companies > div.companies-imgs > div:nth-child(2) {
    bottom: 0 !important;
    padding: 20px;
    align-self: center;
  }
  
  #companies > div.companies-text > button {
    margin: 2rem auto 0;
    align-self: center;
  }
}

@media (max-width: 480px) {
  section#companies {
    gap: 2rem;
    margin-bottom: 60px;
    padding: 0 0.5rem;
  }
  
  .companies-text {
    gap: 1rem;
  }
  
  .companies-text h2 {
    font-size: min(6vw, 26px);
  }
  
  .companies-text p {
    font-size: 14px;
  }
  
  .companies-imgs {
    gap: 1.5rem;
    align-items: center;
  }
  
  .company-container {
    width: 120px;
    height: 100px;
    border-radius: 20px;
  }
  
  #companies > div.companies-imgs > div:nth-child(2) {
    padding: 15px;
  }
}

/* Mission Card Section */

section#our-missions {
  margin-bottom: 12vw;
}

section#our-missions h2,
section#our-missions p {
  text-align: center;
}

section#our-missions p {
  margin-top: min(1.04vw, 20px);
  margin-bottom: 2rem;
}

/* Remove default focus outline and improve accessibility with subtle focus states */
.mission-card:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.3);
}

.mission-card:not(.flipped) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: min(1.04vw, 20px);
  box-shadow: 1px 4px 4px 0px rgba(0,0,0,0.25);
  animation: float 6s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.mission-card.flipped {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: min(1.04vw, 20px);
  box-shadow: 1px 4px 4px 0px rgba(0,0,0,0.25);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: scale(1.3);
  z-index: 10;
  animation: none;
}

.mission-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-card-front, .mission-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: min(1.04vw, 20px);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mission-card-front {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mission-card-back {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Flipped state content transitions */
.mission-card.flipped .mission-card-front {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

.mission-card.flipped .mission-card-back {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mission-card-back h3 {
  color: #333;
  font-size: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.mission-card-back p {
  color: #666 !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  margin: 0;
  white-space: normal !important;
}

.mission-card:hover {
  box-shadow: 2px 8px 20px 0px rgba(0,0,0,0.2);
  transform: translateY(-8px);
}

/* Maintain floating animation and hover effects for flipped cards */
.mission-card.flipped:hover {
  box-shadow: 2px 8px 20px 0px rgba(0,0,0,0.2);
  transform: scale(1.5) translateY(-5px);
}

/* Add a subtle pulse effect for better user feedback */
.mission-card:active {
  transform: scale(0.98) translateY(-4px);
  transition: transform 0.1s ease;
}

.mission-card img {
  width: auto;
  height: auto;
  max-width: 60px;
  max-height: 60px;
  margin-bottom: 1rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Add subtle image scaling on hover for front cards */
.mission-card:not(.flipped):hover img {
  transform: scale(1.1);
}

.mission-card-front p {
  color: black;
  opacity: 1 !important;
  font-size: 24px !important;
  text-wrap: nowrap;
  text-align: center;
}

#our-missions > div > div.themed-shape {
  top: -20vw;
  left: 0vw;
  width: 55vw;
  transform: rotate(-15deg);
  height: 45vw;
}

/* Floating animation keyframes */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Enhanced floating animation that works with both states */
@keyframes floatHover {
  0%, 100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Different animation delays and durations for each card to create unsynchronized floating */
#our-missions > div > div.left-cards > div:nth-child(1):not(.flipped) {
  animation: float 4.5s ease-in-out infinite;
  animation-delay: 0s;
}

#our-missions > div > div.left-cards > div:nth-child(1):not(.flipped):hover {
  animation: floatHover 4.5s ease-in-out infinite;
  animation-delay: 0s;
}

#our-missions > div > div.left-cards > div:nth-child(2):not(.flipped) {
  animation: float 5.2s ease-in-out infinite;
  animation-delay: 0.8s;
}

#our-missions > div > div.left-cards > div:nth-child(2):not(.flipped):hover {
  animation: floatHover 5.2s ease-in-out infinite;
  animation-delay: 0.8s;
}

#our-missions > div > div.center-cards > div:not(.flipped) {
  animation: float 6.1s ease-in-out infinite;
  animation-delay: 1.6s;
}

#our-missions > div > div.center-cards > div:not(.flipped):hover {
  animation: floatHover 6.1s ease-in-out infinite;
  animation-delay: 1.6s;
}

#our-missions > div > div.right-cards > div:nth-child(1):not(.flipped) {
  animation: float 4.8s ease-in-out infinite;
  animation-delay: 2.4s;
}

#our-missions > div > div.right-cards > div:nth-child(1):not(.flipped):hover {
  animation: floatHover 4.8s ease-in-out infinite;
  animation-delay: 2.4s;
}

#our-missions > div > div.right-cards > div:nth-child(2):not(.flipped) {
  animation: float 5.7s ease-in-out infinite;
  animation-delay: 0.4s;
}

#our-missions > div > div.right-cards > div:nth-child(2):not(.flipped):hover {
  animation: floatHover 5.7s ease-in-out infinite;
  animation-delay: 0.4s;
}

.our-missions-cards-container {
  display: flex;
  justify-content: center;
  width: min(62.5vw, 1200px);
  margin: 0 auto;
  gap: min(1.04vw, 20px);
  align-items: center;
  position: relative;
}

.left-cards,
.center-cards,
.right-cards {
  display: flex;
  flex-direction: column;
  gap: min(1.04vw, 20px);
  flex: 1;
}

.left-cards {
  align-items: flex-end;
}

.center-cards {
  align-items: center;
}

.right-cards {
  align-items: flex-start;
}

/* Individual Card Stylings - Flexible Sizing */
#our-missions > div > div.left-cards > div:nth-child(1):not(.flipped) {
  padding: min(3.28vw, 63px) min(2.8vw, 54px);
  width: min(18.8vw, 362px);
  min-width: 200px;
}

#our-missions > div > div.left-cards > div:nth-child(2):not(.flipped) {
  padding: min(1.5vw, 29px) min(3.75vw, 72px);
  width: min(14.2vw, 274px);
  min-width: 180px;
}

#our-missions > div > div.center-cards > div:not(.flipped) {
  padding: min(2.03vw, 39px) min(3.64vw, 70px);
  width: min(23vw, 443px);
  min-width: 220px;
}

#our-missions > div > div.right-cards > div:nth-child(1):not(.flipped) {
  padding: min(1.92vw, 37px) min(3.95vw, 76px);
  width: min(14.2vw, 274px);
  min-width: 180px;
}

#our-missions > div > div.right-cards > div:nth-child(2):not(.flipped) {
  padding: min(2.34vw, 45px) min(3.9vw, 75px);
  width: min(18.8vw, 362px);
  min-width: 200px;
}

/* Flipped card sizing - more uniform and spacious */
#our-missions > div > div > div.mission-card.flipped {
  padding: min(2vw, 30px);
  width: auto;
  min-width: 280px;
}

/* Responsive Mission Cards Section */
@media (min-width: 769px) and (max-width: 1024px) {
  section#our-missions {
    margin-bottom: 8vw;
    padding: 0 2rem;
  }

  .left-cards,
  .right-cards {
    gap: 2rem;
  }
  
  .our-missions-cards-container {
    width: 100%;
    gap: 0;
  }
  
  .mission-card p {
    font-size: min(1.8vw, 20px) !important;
  }
  
  .mission-card img {
    max-width: min(4.5vw, 50px);
    max-height: min(4.5vw, 50px);
  }
  
  /* Flexible card sizes for tablet - maintain proportions */
  #our-missions > div > div.left-cards > div:nth-child(1) {
    width: min(20vw, 280px);
    padding: min(3.5vw, 40px) min(3vw, 35px);
  }
  
  #our-missions > div > div.left-cards > div:nth-child(2) {
    width: min(16vw, 220px);
    padding: min(2.2vw, 25px) min(4vw, 45px);
  }
  
  #our-missions > div > div.center-cards > div {
    width: min(24vw, 320px);
    padding: min(3vw, 35px) min(4.5vw, 50px);
  }
  
  #our-missions > div > div.right-cards > div:nth-child(1) {
    width: min(16vw, 220px);
    padding: min(2.5vw, 30px) min(4.5vw, 50px);
  }
  
  #our-missions > div > div.right-cards > div:nth-child(2) {
    width: min(20vw, 280px);
    padding: min(3vw, 35px) min(4.5vw, 50px);
  }
}

@media (max-width: 768px) {
  section#our-missions {
    margin-bottom: 60px;
    padding: 0 1rem;
  }

  
  section#our-missions h2 {
    font-size: min(5vw, 32px);
    margin-bottom: 1rem;
  }
  
  section#our-missions p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
  }
  
  .our-missions-cards-container {
    flex-direction: column;
    width: 100%;
    gap: 2rem;
    align-items: center;
  }
  
  .left-cards,
  .center-cards,
  .right-cards {
    width: 100%;
    align-items: center;
    gap: 1.5rem;
  }
  
  .mission-card {
    width: 100% !important;
    max-width: 300px;
    border-radius: 20px;
    animation: none !important; /* Disable floating animation on mobile */
    perspective: 1000px;
  }
  
  /* Ensure mobile cards don't break with flipping */
  .mission-card.flipped {
    animation: none !important;
  }
  
  .mission-card-inner {
    min-height: 180px;
  }
  
  .mission-card-front, .mission-card-back {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .mission-card-back {
    padding: 1.5rem 1rem;
  }
  
  .mission-card-back h3 {
    font-size: 16px;
    margin-bottom: 0.8rem;
  }
  
  .mission-card-back p {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  
  .mission-card img {
    max-width: 45px;
    max-height: 45px;
    margin-bottom: 1rem;
  }
  
  .mission-card-front p {
    font-size: 18px !important;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }
  
  /* Keep only hover effect for mobile */
  .mission-card:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 480px) {
  section#our-missions {
    margin-bottom: 40px;
    padding: 0 0.5rem;
  }
  
  section#our-missions h2 {
    font-size: min(6vw, 28px);
  }
  
  section#our-missions p {
    font-size: 14px;
  }
  
  .our-missions-cards-container {
    gap: 1.5rem;
  }
  
  .left-cards,
  .center-cards,
  .right-cards {
    gap: 1rem;
  }
  
  .mission-card {
    max-width: 280px;
    border-radius: 15px;
    animation: none !important; /* Ensure no animation on small mobile */
  }
  
  /* Ensure mobile cards don't break with flipping */
  .mission-card.flipped {
    animation: none !important;
  }
  
  .mission-card-inner {
    min-height: 160px;
  }
  
  .mission-card-front, .mission-card-back {
    padding: 1rem;
    border-radius: 15px;
  }
  
  .mission-card-back h3 {
    font-size: 14px;
    margin-bottom: 0.5rem;
  }
  
  .mission-card-back p {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  
  .mission-card img {
    max-width: 40px;
    max-height: 40px;
  }
  
  .mission-card-front p {
    font-size: 16px !important;
  }
  
  /* Keep only hover effect for small mobile */
  .mission-card:hover {
    transform: translateY(-2px);
  }
}

/* Founder Section */
section#founder {
  display: flex;
  flex-direction: column;
  gap: min(2.08vw, 40px);
  margin-bottom: min(7.18vw, 138px);
  padding-left: 5vw;
  padding-right: 5vw;
  margin: 0 auto;
  padding-bottom: 5vw;
}

#founder > div.founder-top {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: min(2.08vw, 40px);
}

.founder-top-main {
  display: flex;
  flex: 1;
}

#founder > div.founder-top > div.founder-top-main {
  width: 100%;
  align-items: center;
  gap: 2rem;
}

#founder > div.founder-top > div.founder-top-text {
  width: 100%;
  max-width: none;
}

#founder > div.founder-top > div.founder-top-text {
  margin-left: 0;
}

.founder-top-img {
  border: min(1.08vw, 20px) solid white;
  box-shadow: 1px 4px 4px 0px rgba(0,0,0,0.25);
  border-radius: min(2.08vw, 40px);

}

#founder > div.founder-top > div.founder-top-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.founder-top-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* justify-content: space-around; */
  justify-content: flex-end;
  gap: 2rem;
  max-width: 767px;
  margin-left: 2rem;
}

.founder-top-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  align-self: flex-end
}

.founder-top-main {
  display: flex;
  flex: 1;
}

#founder > div.founder-top > div.founder-top-text > ul {
  display: flex;
  flex-direction: column;
  font-size: min(1.08vw,20px);
  opacity: .7;
  gap: .5rem;
}

.founder-top-header ul {
  display: flex;
  flex-direction: column;
  font-size: min(1.08vw,20px);
  opacity: .7;
  gap: .5rem;
}

.founder-middle {
  width: 100%;
}

.founder-middle p {
  font-size: inherit;
  line-height: 1.6;
}

.founder-bottom {
  display: flex;
  gap: min(1.04vw, 20px);
  justify-content: space-between;
}

#founder > div.founder-bottom > div.founder-bottom-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: min(1.04vw, 20px);
  max-width: 706px;
}

#founder > div.founder-bottom > div.founder-bottom-text > button {
  width: fit-content;
}

#founder > div.founder-bottom > div.founder-bottom-img {
  display: flex;
  /* align-items: flex-start; */
  border: min(1.04vw, 20px) solid white;
  box-shadow: 1px 4px 4px 0px rgba(0,0,0,0.25);
  border-radius: min(1.04vw, 20px);
  max-width: 502px;
}

#founder > div.founder-bottom > div.founder-bottom-img > img {
  width: 100%;
  border-radius: 15px;
}

#founder > div.founder-bottom > div.founder-bottom-text > button {
  margin-top: 2rem;
}

#founder > div.founder-bottom > div.founder-bottom-img > img {
  object-fit: cover;
}

/* Responsive Founder Section */
@media (max-width: 1024px) {
  section#founder {
    gap: min(2.5vw, 30px);
    margin-bottom: min(6vw, 100px);
    padding: 0 2rem;
  }
  
  .founder-top {
    gap: min(2vw, 30px);
    align-items: flex-start;
  }
  
  .founder-top-main {
    display: flex;
    flex: 1;
  }
  
  .founder-top-img {
    width: 35vw;
    height: 32vw;
    border-radius: min(2.5vw, 30px);
    max-width: 350px;
  }
  
  .founder-top-text {
    width: 60vw;
    max-width: 600px;
    gap: 1.5rem;
  }
  
  .founder-top-header {
    gap: 1rem;
    flex: 1;
    
  }
  
  .founder-top-header ul {
    font-size: min(1.5vw, 18px);
  }
  
  .founder-bottom {
    gap: min(1.5vw, 25px);
  }
  
  #founder > div.founder-bottom > div.founder-bottom-text {
    width: 55vw;
    max-width: 600px;
  }
  
  #founder > div.founder-bottom > div.founder-bottom-img {
    width: 40vw;
    max-width: 400px;
    border-radius: min(1.5vw, 25px);
  }
}

@media (max-width: 768px) {
  section#founder {
    gap: 2rem;
    margin-bottom: 60px;
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 0;
  }
  
  .founder-top {
    flex-direction: column !important;
    gap: 1.5rem;
    align-items: stretch !important;
    text-align: left;
  }
  
  .founder-top-main {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .founder-top-img {
    width: 150px !important;
    border-radius: 15px;
    min-width: unset !important;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
  }
  
  .founder-top-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
  }
  
  .founder-top-text {
    width: 100% !important;
    max-width: none;
    margin-left: 0 !important;
  }
  
  .founder-top-header h2 {
    font-size: min(5vw, 24px);
    margin-bottom: 0;
  }
  
  .founder-top-header ul {
    font-size: 14px;
    text-align: left;
    margin: 0;
  }
  
  .founder-top-text p {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    margin: 0;
    width: 100%;
  }
  
  .founder-middle {
    text-align: left;
  }
  
  .founder-middle p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .founder-bottom {
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
  }
  
  #founder > div.founder-bottom > div.founder-bottom-text {
    width: 100% !important;
    max-width: none;
    order: 1;
  }
  
  #founder > div.founder-bottom > div.founder-bottom-text p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  #founder > div.founder-bottom > div.founder-bottom-img {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 20px;
    order: 2;
  }
  
  #founder > div.founder-bottom > div.founder-bottom-text > button {
    margin: 2rem auto 0;
    align-self: center;
  }
}

@media (max-width: 480px) {
  section#founder {
    gap: 1.5rem;
    margin-bottom: 40px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0;
  }
  
  .founder-top {
    gap: 1.5rem;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  
  .founder-top-img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 20px;
    min-width: unset !important;
  }
  
  .founder-top-text {
    margin-left: 0 !important;
    width: 100% !important;
    text-align: left;
  }
  
  .founder-top-header {
    text-align: center;
  }
  
  .founder-top-header h2 {
    font-size: min(6vw, 24px);
    text-align: left;
  }
  
  .founder-top-header ul {
    font-size: 14px;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .founder-top-text p,
  .founder-middle p,
  #founder > div.founder-bottom > div.founder-bottom-text p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  #founder > div.founder-bottom > div.founder-bottom-img {
    max-width: 300px;
    border-radius: 15px;
  }
}

/* Founder Responsiveness settings */
.founder-top-img {
  min-width: 275px;
  width: 5rem;
}

#founder > div.founder-top > div.founder-top-main > div.founder-top-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

#founder > div.founder-bottom > div.founder-bottom-img > img {
  object-position: left;
}

@media (width <= 1024px) {
  .founder-top {
    flex-direction: row-reverse;

  }

  .founder-top-text {
    margin-left: 0;
  }
}

@media (width <= 970px) {
  .founder-top {
    align-items: center;
  }
}

@media (width <= 820px) {
  .founder-top {
    align-items: flex-end;
  }
}

@media (width >= 1024px) {
  #founder > div.founder-top > div.founder-top-main > div.founder-top-header > ul {
    font-size: 18px;
  }
}

@media (width <= 768px) {
  #companies > div.companies-imgs > div:nth-child(3) {
    display: none;
  }
}