* {
    margin: 0 auto;
    width: 100%;
    background-color: rgb(0, 0, 0);
}

/* defining custom properties */
:root {
    --main-color: #c8c9db;
    --secondary-color: #a2a2a2;
    --blue: #476098;
    --dark-background: #151515;
    --unique-color: white;
    --font: 'Inconsolata';
    --secondary-font: Raleway;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --title-size: 26px;
    --card-color: #221e1e;
    --card-sec-color: white;
    --card-text: white;
    --card-link: white;
}

header {
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}


a {
    color: white;
    text-decoration: none;
}

#logo {
    width: 80px;
    height: auto;
    margin-left: 0;
    position: fixed;
    z-index: 200;
}

#logo:hover {
    fill: var(--unique-color);
}

nav {
    position: fixed;
    display: flex;
    height: 5em;
    width: 100%;
    z-index: 190;
    background: black;
}

.nav-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border: 2px solid black;
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    padding: 2em;
    width: 30em;
    font-family: var(--secondary-font);
    color: var(--secondary-color);
    font-size: 1.2em;
}

.nav-list a {
    display: flex;
    margin: 0;
    padding: 0;
    /*font-size: 1.2em;*/
    text-decoration-line: none;
    color: var(--main-color);
}

@media only screen and (max-width: 550px) {
  nav {
      height: 8em;
      background: black;
      display: none;
  }
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
}

body::-webkit-scrollbar {
  width: 12px;               /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
  background: #222222;        /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background-color: black;    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 1px solid grey;  /* creates padding around scroll thumb */
}

main {
    padding-top: 10em;
    padding-left: 1em;
    min-height: 100%;
    width: 75%;
    text-align: left;
}

.intro-container {
    font-family: Inconsolata;
}

#name {
    font-size: 6em;
    font-family: var(--secondary-font);
    color: var(--unique-color);
    display: inline-block;
}

.dot{
 background-color: #CA4246;
  
  /* Create the gradient. */
   background-image: linear-gradient(
        45deg,
        cyan 16.666%, 
        /* #CA4246 33.333%,  */
        /* #E16541 33.333%,  */
        /* #E16541 50%,  */
        /* #8B4513 50%,  */
        /* #FF7F50 66.666%,  */
        /* #476098 66.666%,  */
        #476098 83.333%, 
        #476098 83.333%
        );
  
  /* Set the background size and repeat properties. */
  background-size: 100%;
  background-repeat: repeat;

  /* Use the text as a mask for the background. */
  /* This will show the gradient as a text color rather than element bg. */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
  margin-top: 0.5em;
  margin-left: 0;
  font-family: "Archivo Black", sans-serif;
}

@media only screen and (max-width: 550px) {
  main {
      /* width: 100%; */
      padding-top: 0;
  }
  #about{
    padding-top: 2.5em;
    margin-top: 2em;
  }
  .about-section p {
    padding-top: 1em;
    margin: 0;
}
  .about-section{
    padding-top: 0;
    margin-top: 0;
  }
  #name{
    font-size: 5em;
  }
  #build{
    font-size: 4em;
    margin: 0;
    padding: 1em 0 0 0;
    width: 100%;
  }
  #experiences{
    padding-top: 2.5em;
    margin-top: 2em;
  }

}


#self {
    color: var(--main-color);
    font-family: var(--secondary-font);
    font-size: 18px;
    max-width: 90%;
    margin: 20px 9em 0 0;
}

/* hi sentence */
#hi {
    font-size: 20px;
    font-family: var(--secondary-font);
    color: var(--secondary-color);
}

/* Email */
#email {
    position: fixed;
    right: 1em;
    width: 1em;
    bottom: 2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1em;
    font-family: var(--secondary-font);
    margin-top: 100px;
    color: var(--main-color);
    text-decoration: none;
}

#email:hover {
    color: var(--unique-color);
}

/* Social Media Links */
.icon-cont {
    position: fixed;
    width: 2em;
    bottom: 2em;
    left: -2em;
    z-index: 0;
}

#socials {
    list-style: none;
}

.icon {
    fill: var(--secondary-color);
    font-size: 1em;
    display: flex;
    justify-content: space-between;
    padding-top: 0.5em;

}

.icon:hover {
    fill: var(--unique-color)
}

.about-section {
    position: inherit;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.title {
    font-family: var(--font);
    color: var(--unique-color);
    padding: 110px 0 0 0;
    margin: 100px 0 23px 0;
    font-weight: 600;
    font-size: 21px;
}

.inside-title {
  font-family: var(--secondary-font);
  font-size: var(--title-size);
  background-color: var(--blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
  margin-left: 5px;
}

.info {
    color: var(--secondary-color);
    font-family: var(--secondary-font);
    position: inherit;
    max-width: 50em;
    margin-left: 0;
    padding-top: 0.3em;
    font-size: 1.1em;
}

.max-lines {
    word-wrap: break-word;
    /*max-width: 50vw;*/
    width: 70vw;
    line-height: 1.8em;
    padding: 0;
}

.trials {
    margin-bottom: 1em;
    margin-left: 1em;
    max-width: 50em;
}

#tech ul {
    list-style: outside none none;
    font-family: monospace;
    font-size: 17px;
    color: var(--main-color);
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 210px));
}

#tech ul li::before {
    content: "▹ ";
    color: var(--unique-color);
    font-size: 20px;
}

@media screen and (max-width: 650px) {
    #tech ul {
        list-style: outside none none;
        font-family: monospace;
        font-size: 1.3em;
        color: var(--main-color);
        display: grid;
        grid-template-columns: repeat(2, minmax(200px, 250px));
    }
    #build {
      width: 5em;
    }
}
@media screen and (max-width: 500px) {
    #tech ul {
        list-style: outside none none;
        font-family: monospace;
        font-size: 1.3em;
        color: var(--main-color);
        display: grid;
        grid-template-columns: repeat(2, minmax(130px, 200px));
    }
    #tech ul li::before {
        content: "▹ ";
        color: var(--unique-color);
        font-size: 20px;
    }
}

/* tabs for the experiences */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

.tabs {
    display: block;
    display: -webkit-flex;
    display: -moz-flex;
    display: flex;
    position: inherit;

    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0;
    overflow: hidden;
}

.tabs [class^="tab"] label,
.tabs [class*=" tab"] label {
    color: #efedef;
    cursor: pointer;
    display: block;
    font-size: 1.1em;
    font-weight: bolder;
    line-height: 1em;
    padding: 1.3rem 0;
    text-align: center;
    margin-left: 0.8em;
    width: 8em;
}

.tabs [class^="tab"] [type="radio"],
.tabs [class*=" tab"] [type="radio"] {
    border-bottom: 1px solid rgba(239, 237, 239, 0.5);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 13em;
    margin-left: 0;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.tabs [class^="tab"] [type="radio"]:hover, .tabs [class^="tab"] [type="radio"]:focus,
.tabs [class*=" tab"] [type="radio"]:hover,
.tabs [class*=" tab"] [type="radio"]:focus {
    border-bottom: 1px solid var(--main-color);
}

.tabs [class^="tab"] [type="radio"]:checked,
.tabs [class*=" tab"] [type="radio"]:checked {
    border-bottom: 2px solid var(--main-color);
}

.tabs [class^="tab"] [type="radio"]:checked + div,
.tabs [class*=" tab"] [type="radio"]:checked + div {
    opacity: 1;
}

.tabs [class^="tab"] [type="radio"] + div,
.tabs [class*=" tab"] [type="radio"] + div {
    display: block;
    opacity: 0;
    padding: 0.7em 0;
    width: 100%;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.tabs .tab-2 {
    width: 50%;
    flex: 1;
    margin-left: 1em;
}

.tabs .tab-2 [type="radio"] + div {
    width: 200%;
    margin-left: 0;
}

.tabs .tab-2 [type="radio"]:checked + div {
    margin-left: 0;
}

.f-tab {
    font-family: var(--secondary-font);
    margin-right: 1em;
    border-bottom: 1px solid rgba(239, 237, 239, 0.8);
}

.tamkeen {
    text-decoration: none;
    color: var(--unique-color);
}

.tamkeen:visited {
    color: var(--unique-color);
}

.date {
    font-family: monospace;
    color: white;
    padding: 0 0 1.5em 1.4em;
}

.company {
    font-family: var(--secondary-font);
    color: white;
    padding: 0 0 0.5em 1em;
    font-weight: none;
}

.company a {
    text-decoration: none;
    color: var(--unique-color);
}

#tamk {
    font-weight: bolder;
}

.info ul {
    list-style: outside none none;
}

.info ul li::before {
    content: "▹ ";
    color: var(--unique-color);
}

/* Work cards */
.projects {
    flex: 1;
    padding-top: 0;

}

.page-contain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: left;
    background-color: rgb(0, 0, 0);
    font-family: 'Open Sans', sans-serif;

}

.data-card {
    display: flex;
    flex-direction: column;
    max-width: 18em;
    min-height: 18em;
    overflow: hidden;
    border-radius: .5em;
    text-decoration: none;
    font-family: var(--font);
    background-color: var(--dark-background);
    margin: 1em;
    padding: 2em 1.5em;
    box-shadow: 0 1.5em 2.5em -.5em rgba(#000000, .1);
    transition: transform .45s ease, background-color .45s ease;
}

.data-card h3 {
    color: var(--card-text);
    background-color: var(--dark-background);
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    padding-bottom: .5em;
    margin: 0 0 0.14em;
    border-bottom: 2px solid var(--unique-color);
    transition: background-color .45s ease, border .45s ease;
}

.data-card h4 {
    color: var(--card-text);
    background-color: var(--dark-background);
    opacity: 0;
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    margin: 0 0 1em;
    transform: translateY(-1em);
    transition: opacity .45s ease, transform .45s ease, background-color .45s ease;
}

.data-card p {
    opacity: 0;
    color: var(--card-text);
    background-color: var(--dark-background);
    font-family: var(--secondary-font);
    font-weight: none;
    font-size: 1em;
    line-height: 1.8;
    margin: 0 0 1em;
    transform: translateY(-1em);
    transition: opacity .45s ease, transform .45s ease, background-color .45s ease;
}


.link-text {
    display: block;
    color: var(--card-link);
    background-color: var(--dark-background);
    text-align: center;
    font-size: 1.125em;
    font-family: var(--secondary-font);
    font-weight: 600;
    line-height: 1.2;
    margin: auto 0 0;
    transition: background-color .45s ease;
}

.link-text svg {
    background-color: var(--dark-background);
    font-size: 1.5em;
    margin: 1em 0 0 0.5em;
    width: 20px;
    transition: background-color .45s ease;
}

.link-text path {
    fill: var(--card-link);
    transition: fill .45s ease;
}

.data-card:hover {
    background-color: var(--secondary-color);
    transform: scale(1.02);
    .link-text {
        color: var(--secondary-color);
    }
    .link-text path{
        fill: var(--secondary-color);
    }
    .link-text svg{
        background-color: var(--secondary-color);
    }
    z-index: 0;
}

.data-card:hover > h3 {
    background-color: var(--secondary-color);
    border-bottom-color: var(--card-sec-color);
}

.data-card:hover > h4 {
    opacity: 1;
    transform: none;
    background-color: var(--secondary-color);

}

.data-card:hover > p {
    opacity: 1;
    transform: none;
    background-color: var(--secondary-color);
}

.data-card:hover > .link-text {
    background-color: var(--secondary-color);
}

.data-card:hover > .link-text svg {
    background-color: var(--secondary-color);
}

@media only screen and (max-width: 768px) {
    .data-card:hover > p{
        background-color: var(--dark-background);
        transform: none;
    }
    .data-card:hover > h4{
        background-color: var(--dark-background);
        transform: none;
    }
    .data-card:hover > .link-text{
        background-color: var(--dark-background);
        display: none;
    }
    .data-card:hover > h3{
        background-color: var(--dark-background);
        transform: none;
    }
    .data-card > h3{
        background-color: var(--dark-background);
        transform: none;
    }
    .data-card:hover {
        background-color: var(--dark-background);
        transform: none;
    }
    .data-card p{
        opacity: 100;
    }
    .data-card h4{
        color: var(--secondary-color);
        padding-top: 0.6em;
        opacity: 100;
    }
    .link-text {
        color: var(--dark-background);
    }
    .link-text path{
        fill: var(--dark-background);
    }
    .link-text svg{
        background-color: var(--dark-background);
    }
}

.get {
    color: white;
    font-family: var(--secondary-font);
    font-size: 30px;
    text-align: center;
    margin-bottom: 30px;
}
.contact {
    flex: 3;
    width: 100%;
    text-align: center;
    margin-bottom: 150px;
}

.last-title {
    color: var(--blue);
    font-family: var(--secondary-font);
    padding: 150px 0px 0px 0px;
    margin: 100px 0px 15px 0px;
    font-size: 20px;
    font-weight: bold;
}

.question {
    color: var(--secondary-color);
    font-family: var(--secondary-font);
    position: inherit;
    font-size: 1.2em;
}

.email-me {
    background-color: #141414;
    border: 1px solid rgba(54, 54, 54, 0.6);
    font-size: 1.2em;
    font-weight: 300;
    position: relative;
    outline: none;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    height: 45px;
    width: 130px;
    opacity: 1;
    color: var(--unique-color);
    font-family: monospace;
    font-weight: 20;
    text-decoration: none;
    margin-top: 40px;
}
