/* style.css */
:root {
    --chrome: #E6EDF5;
    --stainless: #B3B8BE;
    --steel-grey: #6E7173;
    --iron: #A19D94;
    --nickel: #7A786F;
    --pacific: #1CA9C9;
    --steel-blue: #4682B4;
    --midnight: #2C3E50;
    /* Lighter Variants */
    --chrome-light: #FFFFFF; /* white */
    --stainless-light: #DADDE0;
    --steel-grey-light: #848789;
    --iron-light: #BDBBB4;
    --nickel-light: #918F86;
    --pacific-light: #30C1E2;
    --steel-blue-light: #679AC4;
    --midnight-light: #344A60;
    --black-light: #4D4D4D;
    /* Darker Variants */
    --chrome-dark: #A2BCD9;
    --stainless-dark: #8B929B;
    --steel-grey-dark: #585A5C;
    --iron-dark: #837E73;
    --nickel-dark: #616058;
    --paciifc-dark: #1687A0;
    --steel-blue-dark: #386790;
    --midnight-dark: #233140;
    --white-dark: #CCCCCC;
    /* other */
    --computervision: #0F9D58;
    --datascience: #4285F4;
    --additivemanufacturing: #F4B400;
    --robotics: #DB4437;
}

html {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--steel-grey-light);
}

/* Element Styles */
h1, h2, h3 {
    font-family: 'Roboto-Serif', serif;
    color: var(--chrome);
}

h1 {
    font-size: 2.7Rem;
}
h2 {
    font-size: 2Rem;
}
h3 {
    font-size: 1.5Rem;
}

a {
    text-decoration: none;
    color: inherit;
}
li {
    margin: 0.7rem 0;
}

/* General Layout */
.dyn-cntr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}
.dyn-item {
    flex-basis: auto;
    min-height: 100px;
    box-sizing: border-box;
}
@media (min-width: 980px) {
    .two-col .dyn-item {
        width: 45%;
    }
    .wide .dyn-item {
        width: 65%;
    }
    .headline-cntr {
        width: 40%;
    }
}
.flex-col {
    display: flex;
    flex-direction: column;
}


nav {
    color: var(--chrome);
    font-family: 'Roboto', sans-serif;
    position: fixed;
    top:0;
    left:0;
    right:0;
    width: 100vw;
    z-index:1000;
    box-sizing: border-box;
    padding: 0 5%;
    display: flex;
    flex-direction: row;
}
#nav-brand {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    padding: 1rem;
}
#nav-brand:hover {
    background-color: var(--midnight);
}
#logo {
    height: 70px;
}
#company-name {
    font: 700 44px 'Roboto Serif', 'sans-serif';
    margin-left: 15px;
}
#nav-contact {
    flex: 1;
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 0.5rem 1rem;
}
#nav-menu {
    flex: 1;
    display: flex;
    justify-content: right;
    align-items: center;
}
#nav-menu a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1rem;
    box-sizing: border-box;
}
#nav-menu a:hover {
    background-color: var(--steel-blue);
}
#hamburger {
    display: none;
    font-size: 40px;
    margin-top: 6px;
    padding: 1rem;
}

header {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    min-height: 400px;
    height: 70vh;
    box-sizing: border-box;
    padding-top: 120px;
    padding-bottom: 3Rem;
    width: 100%;
    border-bottom: 3px solid var(--pacific);
}
header .cntr {
    color: var(--chrome);
    margin-left: 15%;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 2rem;
    border-radius: 24px;
    padding: 1.5rem;
    max-width: fit-content;
    background: rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}
header h1, header p {
    margin: 0;
}

main {
    width: 90%;
    padding-bottom: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    background: linear-gradient(to top,var(--nickel-dark), var(--iron-light));
    color: black;
    text-align: center;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 3rem;
}

button {
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.5s ease;
    cursor: pointer;
    padding: 8px 16px;
    color: var(--chrome);
    border: 2px solid var(--chrome);
    font-size: 1rem;
}
button:hover {
    border: 2px solid var(--chrome-light); 
    color: var(--chrome-light);
}
.contact-btn {
    background-color: var(--pacific);
}
.contact-btn:hover {
    background-color: var(--pacific-light);
}
.minor-btn {
    background: none;
}
.minor-btn:hover {
    background-color: var(--steel-grey);
}
.linkedin {
    color: #0077B5;
    border-color: #0077B5;
}
.github {
    color: #08872B;
    border-color: #08872B;
}
.twitter {
    color: black;
    border-color: black;
}
.success {
    color: lightgreen;
    border-color: lightgreen;
}
.success:hover {
    color: lightgreen;
    border-color: lightgreen;
    background-color: black;
    cursor: none;
}
.failure {
    color: coral;
    border-color: coral;
}
.failure:hover {
    color: coral;
    border-color: coral;
    background-color: black;
    cursor: none;
}

.gradient-text-blue {
    background: linear-gradient(to left, var(--pacific-light), var(--steel-blue-dark));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.gradient-text-brown {
    background: linear-gradient(to right, var(--nickel-dark), var(--iron-light));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}


.contact {
    margin: 3rem;
    max-width: 1200px;
}
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-form label {
    width: 100%;
}
.contact-form input, .contact-form textarea {
    font-family: inherit;
    font-size: inherit;
    border: 1px solid var(--steel-blue-dark);
    width: 100%;
    padding: 2px 4px;
    border-radius: 4px;
    background-color: var(--steel-grey-dark);
    color: var(--chrome);
    box-sizing: border-box; /* ensures padding doesn’t expand total width */
}
.contact-form textarea {
    height: 3rem;
}
.contact-form fieldset {
    border: solid 2px var(--nickel);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    width: fit-content;
    color: var(--chrome);
}
.contact-form fieldset label, .contact-form fieldset input {
    width: fit-content;
}
.contact-form legend {
    color: var(--steel-grey);
}



section {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--midnight);
    padding-bottom: 15px;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
article {
    max-width: 900px;
    margin: 0 1.5rem;
}

.offer {
    max-width: 750px;
    border: 2px solid var(--steel-blue);
    border-radius: 24px;
    box-shadow: inset 0 0 25px 10px var(--steel-blue);
    padding: 3rem;
    padding-top: 0;
    margin: 3rem;
}

.carousel-cntr {
    width: 95%;
    overflow: hidden;
    position: relative;
    padding-block: 10px;
    -webkit-mask: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}
.carousel {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}
.carousel img {
    height: 120px;
    object-fit: contain;
    background-color: white;
    border: 2px solid var(--nickel);
}
@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 10px));
    }
}

#testimonial-cntr {
    display: flex;
    margin: 0 5%;
}
.testimonial {
    box-shadow: inset 0 0 25px 10px var(--midnight);
    border-radius: 15px;
    color: var(--chrome);
    display: flex;
    flex-direction: column;
    height: fit-content;
    transition: all 0.3s ease;
    user-select: none;
    margin: 1rem;
    padding: 1.5rem;
}
.testimonial p {
    margin: 1rem;
    flex: 1;
}
.testimonial-person {
    flex: 1;
}
.testimonial.swipe-left {
  transform: translateX(-50px);
  opacity: 0;
}
.testimonial.swipe-right {
  transform: translateX(50px);
  opacity: 0;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.dot.active {
  background-color: var(--pacific);
  transform: scale(1.5);
}

.content-tile-cntr {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}
.content-cntr {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    border-radius: 10px;
    transition: all 0.5s ease;
    cursor: pointer;
}
.content-cntr h3 {
    flex: 1;
    margin: 1rem;
}
.content-cntr p {
    margin: 1rem;
}
.content-cntr.portfolio {
    background: linear-gradient(to top, var(--iron), transparent 5%);
}
.content-cntr.portfolio:hover {
    background-color: var(--iron);
    color: black;
}
.content-img {
    width: 100%;
    background-color: var(--chrome-light);
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
}
img.fit {
    max-width: 100%;
    object-fit: contain;
}
img.crop {
    width:100%;
    object-fit: cover;
}



@media (max-width: 980px) {
    #prevBtn, #nextBtn {
        display: none;
    }
    #testimonial-cntr {
        margin: 0;
    }

    #nav-menu {
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 999;
        background: var(--steel-grey-dark);
        transition: transform 0.3s ease;
        transform: translateY(-200%);
        padding: 30px;
        box-sizing: border-box;
    }
    #nav-menu.show {
        transform: translateY(120px);
    }

    #hamburger {
        display: block;
    }

    header .cntr {
        margin-left: 10%;
        width: 80%;
        align-items: center;
        text-align: center;
    }

    #company-name {
        display: none;
    }

}

@media (max-width: 768px) {
   
    html {
        font-size: 16px;
    }
    main {
        padding: 0 8%;
    }

    .offer {
        padding: 1.5rem;
        padding-top: 0;
        margin: 1.5rem;
    }

    .carousel img {
        height: 5rem;
    }
}

/* Utility */
.hidden {
    display: none !important;
}
.flex-row {
    display: flex;
    gap: 2rem;
}
.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}
.centered-horizon {
    display: flex;
    justify-content: center; 
}
.readability {
    background: rgba(0, 0, 0, 0.7);
}