*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --brand-color : #ECC93A;
}

body {
    padding: 0;
    margin: 0;
    background: radial-gradient(black 0%, #383838 100%);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 100vw;
    overflow-x: hidden;
}

p {
    line-height: 1.5em;
}

ul {
    padding: 0;
    list-style-type: none;
}

header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 1em 5em;
    position: fixed;
    z-index: 100;
    width: 100%;
}

nav ul {
    flex-basis: 20%;
    display: flex;
    justify-content: center;
    gap: 5em;
    list-style-type: none;
}

nav strong {
    color: var(--brand-color);
}

.current-page {
    color: #ECC93A;
}

header main {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    padding: 10em;
    padding-bottom: 3em;
    position: relative;
    overflow: hidden;
}

header h1 {
    color: #ECC93A;
    font-size: 4em;
}

header p {
    color: white;
    font-size: 1.5em;
}

header main div {
    flex-basis: 40%;
}

.circle {
    width: 150%;
    height: 200%;
    border-radius: 50%;
    background-color: var(--brand-color);
    position: absolute;
    top: -100%;
    right: -100%;
}

button {
    border-radius: 30px;
    padding: 1em 2em;
    background-color: var(--brand-color);
    font-weight: 700;
}

#get-consultation {
    display: block;
    margin: 2em auto;
}

section {
    padding: 2em 4em;
}

h2 {
    font-size: 4em;
}

.container {
    display: grid;
    margin: auto;
    max-width: 70em;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    row-gap: 4em;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: #1111118f;
    box-shadow: 1px 1px 4px -1px var(--brand-color);
    color: white;
    padding: 2em;
    border-radius: 6px;
    font-size: 1.02em;
}

.card h3 {
    text-align: center;
    font-size: 3em;
    color: var(--brand-color);
    flex-basis: 40%;
}

.card ul {
    flex-basis: 40%;
}

.card p {
    flex-basis: 20%;
}

.card li {
    padding: 1em 0;
    position: relative;
    padding-left: 2.5em;
}

.card li::before {
    content: "\2713";
    color: black;
    width: 1.4em;
    height: 1.4em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--brand-color);
    position: absolute;
    top: 1em;
    left: 0;
}

.projects-container {
    display: flex;
    justify-content: center;
}

.prototype {
    flex-basis: 30%;
    border-radius: 6px;
    background-color: #111;
    border: 1px solid var(--brand-color);
}

.prototype img {
    object-fit: contain;
    width: 100%;
    border-radius: inherit;
}

.prototype p {
    text-align: center;
    text-decoration: underline;
}

.icons {
    max-width: 400em;
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(2, minmax(min-content, 40em));
    gap: 4em;
    margin: 3em auto 0;
}

.icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

.icon img {
    flex-basis: 10%;
    flex-grow: 0;
    margin-bottom: 1em;
    max-width: 10%;
    object-fit: cover;
}

.icon div {
    flex-grow: 1;
}

.icon h3 {
    font-size: 1.3em;
    color: var(--brand-color);
    text-align: left;
}

.icon p {
    text-align: left;
}

.process {
    display: flex;
    flex-direction: column;
    gap: 3em;
    width: 80%;
    margin: auto;
    counter-reset: number;
    align-items: flex-start;
}

.phase {
    background-color: var(--brand-color);
    color: black;
    display: flex;
    border-radius: 6px;
    width: 90%;
}

.phase div {
    padding: 1em 2em 1em 0;
}

.phase::before {
    counter-increment: number;
    content: counter(number);
    flex-basis: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    padding: 1em;
}

.process .phase:nth-child(even) {
    direction: rtl;
    align-self: flex-end;
}

.process .phase:nth-child(even) div {
    padding: 1em 0 1em 2em;
}

.process-2 {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: auto;
    counter-reset: number2; 
}

.phase-2 {
    border-bottom: 1px solid var(--brand-color);
    padding: 2em 0;
}

.phase-2 h3 {
    color: var(--brand-color);
}

.phase-2 h3::before {
    counter-increment: number2;
    content: ""counter(number2)". ";
}

.process-2 div:last-child {
    border: hidden;
}

.contact-container {
    display: flex;
    justify-content: space-between;
}

.contact-container > div {
    flex-basis: 40%;
}

.form-container {
    flex-basis: 40%;
}

form {
    border-radius: 6px;
    background-color: var(--brand-color);
    display: flex;
    flex-direction: column;
    padding: 0.5em;
    height: 25em;
    color: black;
}

label {
    display: block;
}

form div {
    width: 100%;
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

input, textarea {
    width: 100%;
    padding: 0.7em;
    border-radius: 6px;
    border: 0;
    flex-grow: 1;
    background-color: #2f2f2f;
    color: var(--brand-color);
    font-family: Arial, Helvetica, sans-serif;
    resize: none;
}

form div {
    flex-shrink: 1;
}

form div:last-child {
    flex-basis: 50%;
    flex-shrink: 0;
    flex-grow: 1;
}

.rtl {
    direction: rtl;
}

.form-container button {
    margin: 1em;
}

.contact-icons {
    width: 40%;
    height: 2em;
}

.contact-icons img {
    min-width: 20%;
    margin: 0.5em;
    height: 100%;
    object-fit: contain;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-container > div {
    flex-basis: 40%;
}

.about-container img {
    border-radius: 6px;
}

.about-container button {
    margin: 2em;
}

/* The device with borders */
.smartphone {
  position: absolute;
  width: calc(360px/1.5);
  height: calc(640px/1.5);
  margin: auto;
  border: 12px black solid;
  border-top-width: 45px;
  border-bottom-width: 45px;
  border-radius: 27px;
  top: 30%;
  left: 78%;
  z-index: 10;
}

/* The horizontal line on the top of the device */
.smartphone:before {
  content: '';
  display: block;
  width: 45px;
  height: 3.75px;
  position: absolute;
  top: -22.5px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  border-radius: 7.5px;
}

/* The circle on the bottom of the device */
.smartphone:after {
  content: '';
  display: block;
  width: 26.25px;
  height: 26.25px;
  position: absolute;
  left: 50%;
  bottom: -48.75px;
  transform: translate(-50%, -50%);
  background: #333;
  border-radius: 50%;
}

/* The screen (or content) of the device */
.smartphone .content {
  width: 218px;
  height: 337px;
  background: white;
  overflow: hidden;
}


/* The laptop with borders */
.laptop {
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
  -webkit-transform: scale(.6) translate(-50%); /* Scaled down for a better Try-it experience (change to 1 for full scale) */
  transform: scale(.6) translate(-50%); /* Scaled down for a better Try-it experience (change to 1 for full scale) */
  top: 50%;
  left: 68%;
  position: absolute;
  width: calc(1366px/2);
  height: calc(800px/2);
  border-radius: 6px;
  border-style: solid;
  border-color: black;
  border-width: 12px 12px 40px;
  background-color: black;

}

/* The keyboard of the laptop */
.laptop:after {
  content: '';
  display: block;
  position: absolute;
  width: calc(1600px/2);
  height: calc(60px/2);
  margin: 12.5px 0 0 -65px;
  background: black;
  border-radius: 6px;
}

/* The top of the keyboard */
.laptop:before {
  content: '';
  display: block;
  position: absolute;
  width: calc(250px/2);
  height: calc(30px/2);
  bottom: -55px;
  left: 50%;
  -webkit-transform: translate(-50%);
  transform: translate(-50%);
  background: #f1f1f1;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  z-index: 1;
}

/* The screen (or content) of the device */
.laptop .content {
  width: calc(1320px/2);
  height: calc(750px/2);
  overflow: hidden;
  border: none;
}