body {
    width: 100%;
    font-family: 'Raleway', calibri;
    background: #1a1a1a;
    color: #f7fafc;
    overflow-x:hidden;
    margin: 0;
    height:100%;
}

@media only screen and (min-width : 320px) and (max-width : 768px) {

  #menu h1 {
    display: block!important;
    text-align: center;
  }
  #menu {
    display: block!important;
  }
  #menu ul {
    width: 100%!important;
    -webkit-padding-start: 0px!important;
    justify-content: center!important;
  }

  #projectData {
    display: none!important;
  }

  #mobileData {
    display: block!important;
  }

  .companyImg {
    display: none!important;
  }

  #workDetails > p {
    width: 90%!important;
    text-align: left!important;
  }

  #workBox {
    width:90%!important;
  }
}
/*************
Top
**************/

#menu {
  margin: 1% 2%;
  display: flex;
  justify-content: space-between;
  font-family: 'Avenir Next';
}

#menu ul {
  display: inline-flex;
  list-style-type: none;
  justify-content: flex-end;
  width: 50%;
}

#menu a {
  text-decoration: none;
}

#menu ul a {
  margin: auto 3%;
  text-decoration: none;
  color: #f7fafc;
  border-bottom: 2px solid transparent;
  transition: all ease-in-out 0.5s;
}

#menu ul a:hover {
  border-color: #f7fafc;
}

#menu ul a:visited {
  color: #f7fafc;
}

#menu h1 {
  color: #f7fafc;
  font-size: 24px;
  font-weight: 400;
  display: inline;
}

#menu h1 b {
  font-size: 30px;
  font-weight: 400;
}

#top {
  text-align: center;
}

#top img {
  border-radius: 50%;
  width: 18%;
}


#bio {
  text-align: center;
  margin: 3% 13%;
}

#bio h2 {
  font-weight: 900;
}

#bio p {
  line-height: 1.7;
  margin-top: 3%;
}

#bio p a {
  text-decoration: none;
  color: #60a5fa;
  border-bottom: 2px solid transparent;
  transition: all ease-in-out 0.5s;
  font-weight: bold;
}

#bio p a:hover {
  border-color: #60a5fa;
}

#links {
  text-align: center;
}

#links a {
  margin: auto 1%;
  color: #f7fafc;
  text-decoration: none;
}

#links a:link {
  text-decoration: none;
}

#links a:visited {
  text-decoration: none;
}

#links a:hover {
  text-decoration: underline;
}

#links a:active {
  text-decoration: underline;
}

.fa-th-large{
  font: normal normal normal 32px/1 FontAwesome!important;
}

.fa {
  transition: all ease-in-out 0.5s;
}

[type="git"]:hover{
    color: #333;
    cursor:pointer;
}

[type="fb"]:hover{
    color: #3B5999;
    cursor:pointer;
}

[type="twit"]:hover{
    color: #55ACEE;
    cursor:pointer;
}

[type="linkedin"]:hover{
    color: #4875B4;
    cursor:pointer;
}

.fa-heart{
  color: #C0392B;
  font-size: 30px;
}

/******************************
Subpages CSS
******************************/

#projectshead h1,
#workhead h1,
#abouthead h1 {
  width: 100%;
  text-align:center;
  -webkit-margin-before: 0;
  -webkit-margin-after: 0.5em;
  padding-top: 0.2em;
  font-weight: normal;
}

/******************************************
Projects
******************************************/

#projects > div {
  display: inline-block;
  margin: 3%;
}

#pjmain{
  width: 100%;
  text-align:center;
}

#mobileData {
  display: none;
}


#projectData {
  border: 2px solid #909090;
  border-radius: 4px;
  margin: 1% auto;
  width: 55%;
  height: 150px;
}

#projectData > div {
  display: inline-block;
  overflow-y: scroll;
  font-family: Avenir Next;
}

#projectImg {
  background: #EDEDED;
  width: 150px;
  border-right: 1px solid #909090;
  height: 100%;
  background-size: cover;
}

#projectDetails {
  height: 100%;
  margin-left: 2%;
  word-wrap: normal;
  width: 70%;
}

#projectDetails > tag:hover {
  font-weight: normal;
  border: 1px dashed #000;
}

#projectDetails > div {
  line-height: 1.5;
  margin-bottom: 15px;
}

#projectDetails a {
  color: #4A90E2;
  text-decoration: none;
}

#projectDetails > h3 {
  margin-top: 0.5em;
}

.block {
  margin: 3%;
  text-align:center;
  display: inline-block;
  color: #000;
  vertical-align: top;
  cursor: pointer;
}
.block img {
  height: 80%;
  -webkit-border-radius:30%;
  -moz-border-radius: 30%;
  -o-border-radius: 30%;
}


/*************************************************
Tags
*************************************************/

tag {
    display: inline-block;
    -webkit-border-radius:4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    padding: 5px 8px 5px 8px;
    margin: 8px;
    color: #fff;
    width: auto;
    background-color: #333;
    border: 1px dashed #000;
}

tag:hover {
  font-weight: bold;
  padding: inherit 7px;
  border: 1px solid #000;
}

#projects tag:hover {
  font-weight: normal;
  border: 1px dashed #000;
}

#pjmain tag{
    cursor:pointer;
}

tag[data-filter = "paper"] {
    background-color: #27AE60;
}

tag[data-filter = "app"] {
    background-color: #E67E22;
}

tag[data-filter = "web"] {
    background-color: #C0392B;
}

tag[data-filter = "hardware"] {
    background-color: #3498DB;
}

tag[data-filter = "software"] {
    background-color: #DF0101;
}

tag[data-filter = "fp"] {
    background-color: #34495E;
}



/******************************************
Timeline Work Experience
******************************************/

#timeline {
  max-width: 800px;
  margin: 5% auto;
  position: relative;
  padding: 2rem 0;
}

#timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #4a5568;
  top: 0;
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 52%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 52%;
  margin-right: 0;
  text-align: left;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #60a5fa;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  background: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-left-color: #4a5568;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-right-color: #4a5568;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-header h3 {
  margin: 0;
  color: #60a5fa;
  font-size: 1.25rem;
  font-weight: 600;
}

.company-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.timeline-title {
  font-weight: 600;
  color: #f7fafc;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #cbd5e0;
}

.timeline-description {
  color: #e2e8f0;
  line-height: 1.6;
}

.timeline-description a {
  color: #60a5fa;
  text-decoration: none;
}

.timeline-description a:hover {
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    text-align: left;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    right: auto;
    border-right-color: #4a5568;
    border-left-color: transparent;
  }
}

/******************************************
Footer
******************************************/

#footer {
  width: 100%;
  background: #333;
  display: flex;
  justify-content: space-between;;
  bottom: -10px;
  padding: 2% 0;
}

#footer > div {
  margin: 0 2%;
  text-align: left;
}

#footer #links a {
  color: #fff;
}

#footer #links {
  width: 50%;
}

/***************
GALLERY
****************/

.gallery_container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

div.gallery {
    height: 50vh;
    flex-grow: 1;
}


div.gallery img {
    max-height: 100%;
    min-width: 100%;
    vertical-align: bottom;
    object-fit: cover;
}

div.desc {
  padding: 15px;
  text-align: center;
}
