/* Variables */
:root {
    --dark-bg: #200024;
    --text-color: #F3F0E7;
    --text-color-rgb: 243, 240, 231;
    --primary-color: #FF9800;
    --secondary-color:  #8A0B00;
    --secondary-color-rgb: 138, 11, 0;
    --gradient-start:  #2B0031;
    --primary-lighter: #FFD494;

    --body-font: "Roboto Slab", Georgia, "Times New Roman", serif;
    --headline-font: 'Roboto', sans-serif;
}

#modal-body::-webkit-scrollbar {
  width: 1em;
}
 
#modal-body::-webkit-scrollbar-track {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}
 
#modal-body::-webkit-scrollbar-thumb {
    background-color: #750900;
    border-radius: 1em;
}
.margin-0{
    margin: 0;
}
a,a:visited,a:hover,a:active{
  color: var(--primary-color);
  -webkit-backface-visibility:hidden;
          backface-visibility:hidden;
  position:relative;
  transition:0.3s color ease;
  text-decoration:none;
}
a:hover{
  color:var(--primary-lighter);
}
a.before:before,a.after:after{
  content: "";
  transition:0.3s all ease;
  -webkit-backface-visibility:hidden;
          backface-visibility:hidden;
  position:absolute;
}
a.before:before{
  top:-0.15em;
}
a.after:after{
  bottom:-0.15em;
}
a.before:before,a.after:after{
  height:3px;
  width:0;
  background:var(--primary-lighter);
}
a.third:after{
  left:50%;
  -webkit-transform:translateX(-50%);
          transform:translateX(-50%);
}
a.before:hover:before,a.after:hover:after{
  width:100%;
}
html {
  scroll-behavior: smooth;
  background-color: var(--secondary-color);
}

/* Base Styles */
body {
    font-family: var(--body-font);
    font-weight: 300;
    font-size: 1.25em;
    background-image: linear-gradient(180deg, var(--gradient-start) 22%, var(--secondary-color) 100%);
    background-repeat: no-repeat;
    color: var(--text-color);
    margin: 0;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--headline-font);
}
h1 {
    font-size: 3em;
}
header {
    text-align: center;
    margin: 1.25rem;
    text-transform: uppercase;
}

.container {
    position: relative; /* This will allow us to position the children absolutely */
    max-width: 80rem;
    margin: 0 auto;  
    padding: 0 1.25rem; 
}

.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    font-size: 2rem;
    line-height: 1.5;    
}

.intro img {
    max-width: 10.25rem;
    border-radius: 2rem;
    margin-right: 1.25rem;
    border: 10px solid var(--text-color);
}

hr {
    border: none;
    border-top: 1px solid var(--text-color);
    margin: 1.25rem 0;
    opacity: .25;
}

.ux-description {
    padding: 1.25rem;
    text-align: center;
}

.ux-description p {
    font-size:  1.25rem;
    line-height: 1.5;

}

.competencies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.75rem 6.25rem;
    padding: 3.75rem 1.25rem;
}

.competency {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .625rem;
    text-align: center;
    line-height: 1.5;
}

.competency h2, .competency p {
    margin: 0;
}

.competency img { /* My icons */
    width: 4.375rem; 
    margin-bottom: .625rem;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5); /* Start from 90% of the original size */
        opacity: 0; /* Start from fully transparent */
    }
    to {
        transform: scale(1); /* End at the original size */
        opacity: 1; /* End at fully opaque */
    }
}

.btn, .social-btn {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    padding-right: 1.25rem;
    transition: padding-right 0.3s, color 0.3s, border-color 0.3s;
    display: block;
    color: var(--text-color);
    background-color: transparent;
    text-align: center;
    padding: .625rem 1.25rem;
    margin: .625rem auto;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid var(--text-color);
    border-radius: 100px;
    letter-spacing: 2px;
    font-size: 1.125rem;
    font-family: var(--headline-font);
    font-weight: 700;
    line-height: 1rem;
}

/* Arrow styling and initial position */
.btn::after {
    content: '\276F';
    position: absolute;
    right: .625rem; /* Initially position it just to the right of the text */
    opacity: 0; /* Make the arrow invisible initially */
    top: 50%;
    transform: translateY(-50%); 
    transition: opacity 0.3s, transform 0.3s; /* Fade-in transition for the arrow  */
}

/* Expand the button and show the arrow on hover */
.btn:hover {
    padding-right: 1.875rem; /* Increased padding to accommodate the arrow */
    color: var(--primary-color); 
    border-color: var(--primary-color);
}

.btn:hover::after {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
}

.prev-button::before {
    content: '\276E'; 
    position: absolute;
    left: .625rem; /* Position it to the left of the text */
    top: 50%;
    transform: translateY(-50%); 
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0; /* Make the arrow invisible initially */
}
.prev-button:hover {
    padding-left: 1.875rem; 
    padding-right: 1.25rem;
}
.prev-button:hover::before {
    opacity: 1; /* Make the arrow visible */
    transform: translateX(0) translateY(-50%);
}
.prev-button::after {
    content: none;
}


/* nav bar */

.navbar {
    width: 100%;
    background-color: var(--dark-bg);
    position: fixed;
    top: 0;
    z-index: 1000; /* Ensure navbar stays on top of other elements */
    transition: height 0.3s; /* Smooth transition for shrinking effect */
    height: 5rem; /* Default height */
    z-index: 3;
}

.navbar-shrink {
    height: 3.75rem; /* Shrunk height */
}

.navbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo {
    display: block;
    height: 70%; /* Adjust based on your logo's design */
    transition: height 0.3s; /* Smooth transition for shrinking effect */
}

.navbar-shrink .logo {
    height: 60%; /* Adjust based on your logo's design when shrunk */
}

.nav-items {
    display: flex;
    gap: 1.25rem;
}

/* Capabilities Modals */

.scrim {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    align-items: center;  /* Center vertically */
    justify-content: center;  /* Center horizontally */
    z-index: 4;
}
.modal-content {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    border-radius: 2rem;
    overflow: hidden; 
    background-color: var(--secondary-color);
    z-index: 5;
    height: 80%;
    position: relative;
}
.modal-section {
    padding-bottom: 40px;
}
.modal-section-content p {
    line-height: 1.4;
    letter-spacing: .3px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0; 
   /* border-bottom: 1px solid #ccc;*/
    background-color: var(--secondary-color);
    box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2);
}
.modal-logo {
    padding: 1rem;
}
.modal-title {
  flex: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-close {
    padding-bottom: 2rem;
}

.modal-body {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0 5.1em;
}
.callout {
    margin:  0 auto 3rem auto;
    background-color: rgba(var(--text-color-rgb), .1);
    border-radius: 2rem;
    padding: 2rem 2rem 1rem 2rem;
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 1rem;
    width: fit-content;
    line-height: 1.5;
}

.modal-footer {
/*    display: none; */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    height: 2rem;
    padding: 1rem; 
    background-color: var(--secondary-color);
    box-shadow: 0px -3px 5px -1px rgba(0, 0, 0, 0.2);
    opacity: 0; /* start with the footer being transparent */
    transition: opacity 0.3s ease; 
}

.flex-container {
/*    display: flex;
    justify-content:space-between;
    align-items: flex-start;*/
    padding: 0 1.25rem;
    gap: 5rem;
}
/*.details-content {
    flex: 0 0 60%;
}

.details-content-header {
    position: sticky;
    top: 0;
    background-color: var(--secondary-color);
    z-index: 10;
}*/

.details-images {
    flex: 1;  /* Taking remaining space */
    background-size: cover;  /* Cover the entire area */
    background-position: center;  /* Center the image */
}
.details-images img {
    width: 100%; 
    height: auto;
    object-fit: cover; 
    margin-top: .83em;
}
.subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    font-family: var(--headline-font);
    font-weight: 400;
    font-size: .875em;
}
dt {
    font-family: var(--headline-font);
    font-weight: 700;
    font-size: 1.25em;
    margin: 0 0 .5rem 2rem;
    display: list-item;
/*    padding-left: 1rem;*/
}
dd {
    font-family: var(--body-font);
    font-weight: 300;
    font-size: 1em;
    letter-spacing: 0.6px;
    line-height: 1.5;
    margin: 0 0 1rem 2rem;
}


/* The Close Button */
.close-button {
    color: var(--text-color);
    float: right;
    font-size: 2em;
    font-weight: bold;
    padding: 0 1rem;
}
.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}


/* Testimonials */

.testimonial-section {
    width: 99vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.bubbles-box {
    width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 1.25rem;
}
.testimonial-left, .testimonial-right {
    flex: 1; /* Each column takes up equal space */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.bubble {
    border: 2px solid var(--text-color);
    border-radius: 2rem;
    padding: 1rem 2rem;
    position: relative;
}
.bubble p {
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--text-color);
    line-height: 2;
    font-weight: 400;
    /*white-space: normal;
    text-overflow: clip;*/
}
.bubble::before, .bubble::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: -12px;
    left: 26px;
}

.bubble::before {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--text-color);
}

.b1::after {
    border-top: 10px solid #650619; 
}
.b2::after {
    border-top: 10px solid #740810; 
}
.b3::after {
    border-top: 10px solid #5E051B;
}
.b4::after {
    border-top: 10px solid #6F0814;
}
.b5::after {
    border-top: 10px solid #7A090D;
}

.bubble::after {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    bottom: -9px;
    left: 28px;
}

.author {
    font-family: var(--headline-font);
    text-align: left;
    font-size: 1em;
    font-weight: 700;
    margin-top: 1rem;
    }

.author p {
    margin: 0;
    font-size: 1rem;
}

.author span {
    font-weight: 400;
    font-size: 1rem;
}
.read-more {
    display: none;
  }

/* Footer section */

.footer-section {
  text-align: center;
  padding: 2rem;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-button {
  display: flex;
  align-items: center;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.social-buttons svg {
  margin-right: 0.5rem;
}
.icon-path {
    transition: fill 0.3s;
}

.copyright {
    font-size: 1rem;
}
.social-btn{
    display: flex;
    align-items: center;
}
.social-btn:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.social-btn:hover .icon-path {
  fill: var(--primary-color);
}
















/* Mobile Responsive */

@media (max-width: 1051px){
    .intro {
        font-size: 1.6rem;
    }
}

@media (max-width: 1288px) { /* Medium Screens */
    .container {
        padding: 0 .625rem; /* Slightly reduce horizontal padding for more space */
    }

    .competencies {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 3.75rem 6.25rem;
        padding: 2rem 1.25rem;
    }

    .details-section {
        display: flex;
    }
    .details-content {
        flex: 0 0 60%;
    }
    .bubbles-box {
        width: auto;
        padding: 4rem 2.25rem;
    }
}
@media (max-width: 768px) { /* Small Screens */
    .container {
        padding: 0 .625rem; /* Slightly reduce horizontal padding for more space */
    }

    .intro {
        flex-direction: column; /* Stack the image and description vertically */
        font-size: 1.25em;
    }

    .intro img {
        margin-right: 0;
        margin-bottom: 1.25rem;
        max-width: 9.375rem; /* Make the image slightly smaller */
    }
    .subtitle {
    font-size: .75em;
}
    .competencies {
        grid-template-columns: 1fr; /* One competency per row */
    }
    h1 {
      font-size: 2em;
    }
    h2, h3 {
        font-size: 1.3em; /* Adjust headline font sizes if they're too big for mobile */
        line-height: 1.2;
    }

    .btn {
        font-size: .8rem;
        padding: .625rem 1.75rem .625rem 1.25rem;
    }
    .modal-logo-image {
      width: 40px;
    }
    .btn::after {
    content: '\276F';
    position: absolute;
    right: .75rem; /* Initially position it just to the right of the text */
    opacity: 1; 
    top: 50%;
    transform: translateY(-50%); 
    transition: opacity 0.3s, transform 0.3s; /* Fade-in transition for the arrow  */
}
    .prev-button {
      text-align: left;
      padding: .5rem 1.75rem;
      font-size: .7rem;
    }
    .prev-button::before {
        content: '\276E'; 
        position: absolute;
        left: .75rem; /* Position it to the left of the text */
        top: 50%;
        transform: translateY(-50%); 
        transition: opacity 0.3s, transform 0.3s;
        opacity: 1; /* Make the arrow invisible initially */
    }
    .prev-button::after {
        content: none;  
    }
    .next-button{
      text-align: right;
      font-size: .7rem;
      padding: .5rem 1.75rem;
    }
    .details-section {
        display: flex;
    }
    .details-content {
        flex: 0 0 100%;
    }
    .modal-header {
      padding: .5em 0;
    }
    .modal-content {
      height:100%;
      border-radius: 0;
    }
    .modal-footer{
      gap:1rem;
    }
    .modal-body {
    padding: 0 1em;
    }
    .testimonial-left, .testimonial-right {
        flex: 0; /* Each column takes up equal space */
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .bubbles-box {
        width: auto;
        padding: 2rem 2.25rem;
        flex-direction: column;
    }
    .b1::after {
    border-top: 10px solid #760714;
    }
    .b3::after {
    border-top: 10px solid #830A0D;
    }
    .b4::after {
    border-top: 10px solid #78080D;
    }
    .truncated {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-top: 0;
        max-height: 2em;
      }
    .read-more {
        display: inline; 
        cursor: pointer; 
        color: var(--text-color);
        font-family: var(--headline-font);
        text-decoration: underline;
        font-weight: 400;
        font-size: .875em;
        }

    .footer-section {
          text-align: center;
          padding: 2rem;
        }

    .social-buttons {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .social-button {
        display: flex;
        align-items: center;
        border: 2px solid var(--text-color);
        color: var(--text-color);
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
        text-decoration: none;
        flex-wrap: wrap;
        align-content: stretch;
    }

    .social-buttons svg {
        margin-right: 0.5rem;
    }
    .icon-path {
        transition: fill 0.3s;
    }

    .copyright {
        font-size: 1rem;
    }
    .social-btn{
        display: flex;
        justify-content: center;
        margin: 0;
    }
    
}


