/*
* Box Theme
* Created by : Ahmed Eissa
* website : www.ahmedessa.net
* behance : https://www.behance.net/3essa
*/


/* Table of Content
==================================================
	- Google fonts & font family -
	- General -
    - typography -
    - Preloader -
	- Header -
    - box intro section -
    - Portfoilo section -
    - Footer -
    - About page -
    - Services page -
    - contact page -
    - Portfolio single page -
    - Responsive media queries -
*/


/* Google fonts & font family
==================================================*/

/* Poppins is self-hosted (fonts/), not loaded from fonts.googleapis.com: a Google Fonts
   @import sends every visitor's IP address to Google on each page load, which this site's
   Datenschutzerklärung says does not happen (see LG München I, 20.01.2022, Az. 3 O 17493/20). */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

/* Fraunces: display serif used only for the animated hero headline
   (.box-headline), self-hosted for the same reason as Poppins above. */
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/Fraunces-SemiBold.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}

/* General
==================================================*/

html,
body {
    height: 100%;
    font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #666666
}

/* Bootstrap's default link colour (#337ab7) is overridden here so that plain-text
   links (in paragraphs, tables, lists) use HU-Blau instead; more specific rules
   elsewhere (buttons, nav, social icons) still take precedence over this. */
a {
    color: #00376C;
}

a:hover,
a:focus {
    color: #001f3d;
}

.no-padding {
    padding-left: 0;
    padding-right: 0;
}

.no-padding [class^="col-"] {
}

.main-container {
    padding: 30px 0;
}

.center {
    text-align: center;
}

a {
    -webkit-transition: all .3s;
    transition: all .3s
}

.uppercase {
    text-transform: uppercase;
}

.h-30 {
    height: 30px
}

.h-10 {
    height: 10px
}

.color {
    color: #D2C067;
    font-size: 11px;
}

.alert {
  padding: 20px;
  background-color:#D2C067 ;
  color: #0A0A19;
}

.closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtn:hover {
  color: black;
}

/* typography
==================================================*/

h1 {
    color: #393939;
    font-size: 60px;
    text-transform: uppercase;
}


h3 {
    color: #00376C;
}



h5 {
    color: #0A0A19;
}

/* keep the gold accent on the hero h5 (institution line under the rotating
   headline) -- this sits on its own with plenty of space, not dense body
   text, so it isn't a legibility problem */
.box-intro h5 {
    color: #D2C067;
}

/* Contact info card (index.html About Me section): lifts the contact
   details out of the muted body-grey (#999) onto a light card with
   darker text, so it reads clearly instead of blending into the page. */
.contact-box {
    display: inline-block;
    max-width: 100%;
    background: #f5f5f5;
    padding: 18px 22px;
    margin-top: 8px;
}

.contact-box h5 {
    margin-top: 0;
}

.contact-box p {
    color: #333333;
    margin-bottom: 0;
}

p[align="justify"], .justify-text {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}


/* preloader
==================================================*/

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f5f5f5;
    /* change if the mask should be a color other than white */
    z-index: 1000;
    /* makes sure it stays on top */
}

.pre-container {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 100px auto;
}

.double-bounce1,
.double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #D2C067;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: bounce 2.0s infinite ease-in-out;
    animation: bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

@-webkit-keyframes bounce {
    0%,
    100% {
        -webkit-transform: scale(0.0)
    }
    50% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }
    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}


/* headr
==================================================*/

.box-header {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    height: 50px;
    width: 100%;
    z-index: 3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.box-header {
    height: 80px;
    background: #00376C;
    box-shadow: none;
}

.box-header {
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.box-header.is-fixed {
    position: fixed;
    top: -80px;
    background-color: #00376C;
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
}

.box-header.is-visible {
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
}

.box-header.menu-is-open {
    background-color:  #D2C067;
    
}


.box-header.menu-is-open  .box-menu-text{
    color: #0A0A19;
}
.box-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    /* .box-primary-nav-trigger (the MENU control) is absolutely positioned at
       right:10px, width:100px -- i.e. it always occupies the rightmost 110px
       of the header, at every screen width. Below about 430px the wordmark's
       natural ~250px width ran under it. Capping box-logo's own width to
       clear that zone, and letting the wordmark shrink inside it, fixes the
       overlap without changing anything at normal desktop widths, where
       there's room to spare. */
    max-width: calc(100% - 120px);
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.box-logo .hu-logo-badge {
    display: block;
    flex-shrink: 0;
}

.box-logo .logo-wordmark-link {
    display: block;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 250px; /* natural size at rest, same as the old width="250" attribute */
}

.box-logo .logo-wordmark {
    display: block;
    width: 100%;
    height: auto;
}

.box-primary-nav-trigger {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: #fff;
}

.box-primary-nav-trigger .box-menu-text {
    color: #D2C067;
    text-transform: uppercase;
    font-weight: 700;
    display: none;
}

.box-header.is-fixed .box-menu-text {
    color: #D2C067;
}

.box-primary-nav-trigger .box-menu-icon {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 18px;
    height: 2px;
    background-color: #fff;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
    list-style: none;
}

.box-primary-nav-trigger .box-menu-icon::before,
.box-primary-nav-trigger .box-menu-icon:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #fff;
    right: 0;
    -webkit-transition: -webkit-transform .3s, top .3s, background-color 0s;
    -webkit-transition: top .3s, background-color 0s, -webkit-transform .3s;
    transition: top .3s, background-color 0s, -webkit-transform .3s;
    transition: transform .3s, top .3s, background-color 0s;
    transition: transform .3s, top .3s, background-color 0s, -webkit-transform .3s;
}

.box-primary-nav-trigger .box-menu-icon::before {
    top: -5px;
    
}

.box-primary-nav-trigger .box-menu-icon::after {
    top: 5px;
    
}

.box-primary-nav-trigger .box-menu-icon.is-clicked {
    background-color: rgba(255, 255, 255, 0);
}

.box-primary-nav-trigger .box-menu-icon.is-clicked::before,
.box-primary-nav-trigger .box-menu-icon.is-clicked::after {
    background-color:  #fff;
}

.box-primary-nav-trigger .box-menu-icon.is-clicked::before {
    top: 0;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}

.box-primary-nav-trigger .box-menu-icon.is-clicked::after {
    top: 0;
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
}

.box-primary-nav-trigger {
    width: 100px;
    padding-left: 1em;
    background-color: transparent;
    height: 30px;
    line-height: 30px;
    right: 10px;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.box-primary-nav-trigger .box-menu-text {
    display: inline-block;
}

.box-primary-nav-trigger .box-menu-icon {
    left: auto;
    right: 1em;
    -webkit-transform: translateX(0) translateY(-50%);
    transform: translateX(0) translateY(-50%);
}

.box-primary-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background:  #00376C;
    z-index: 2;
    text-align: center;
    padding: 50px 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    list-style: none;
}

.box-primary-nav li {
    font-size: 22px;
    font-size: 1.375rem;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: .2em 0;
    text-transform: capitalize;
}

.box-primary-nav a {
    display: inline-block;
    padding: .4em 1em;
    border-radius: 0.25em;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.box-primary-nav a:focus {
    outline: none;
}

.no-touch .box-primary-nav a:hover {
    text-decoration: none;
    color: #ddd;
}

.box-primary-nav .box-label {
    color: #D2C067;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 17px;
    margin: 2.4em 0 .8em;
}

.box-primary-nav .box-social {
    display: inline-block;
    margin: 10px .4em;
}

.box-primary-nav .box-social a {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 30px
}

.box-primary-nav.is-visible {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.box-primary-nav {
    padding: 150px 0 0;
}

.box-primary-nav li {
    font-size: 18px;
}

/* Create two equal columns that floats next to each other */
==================================================*/
.column {
  float: left;
  width: 50%;
  padding: 10px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
}


/* box-intro
==================================================*/

.box-intro {
    text-align: center;
    display: table;
   /* background: -webkit-linear-gradient( rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url(../img/germania.jpg);
    background: linear-gradient( rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url(../img/germania.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;*/
    height: 100vh;
    width:100%; 
}

.box-intro .table-cell {
    display: table-cell;
    vertical-align: middle;
}

.box-intro em {
    font-style: normal;
    text-transform: uppercase
}

b i:last-child {
    color: #0A0A19  !important;
}

/* keep the gold accent for the JS-driven rotating headline only */
.box-headline b i:last-child {
    color: #D2C067  !important;
}


.box-intro h1 {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00376C;
    font-size: 100px;
    line-height: 1.4
   
}

.box-intro h2 {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    font-size: 36px;
    line-height: 1
}

.box-intro h3 {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00376C;
    font-size: 30px;
    line-height: 1
}

.box-intro h4 {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    font-size: 24px;
    line-height: 1
}

 .box-intro h5 {
        font-size: 24px;
        line-height: 1
    }

.box-intro p {
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00376C;
    font-size: 32px;
    line-height: 1
}


/* index.html navigation tiles: one row of four instead of the old 2 x 2
   Bootstrap grid, and one crop for all four so they read as a set instead
   of four mismatched pictures. Plain flexbox, replacing the nested
   col-md-6-inside-col-md-6 markup this section used to rely on. Scoped to
   these four images: the site-wide `.img-responsive { height: 350px }` rule
   in bootstrap.min.css is deliberately left alone, since every other page
   depends on it. */

.nav-tiles-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 30px;
    margin: 40px 0;
}

.nav-tile {
    flex: 1 1 0;
    min-width: 0;
}

.nav-tile h4 {
    margin-top: 0;
}

.portfolio_item > img.tile-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

/* the publications tree is landscape line art inside a square file: fit it
   instead of cropping, so the top node isn't sliced off */
.portfolio_item > img.tile-img.tile-fit {
    object-fit: contain;
    background: #ffffff;
}

@media (max-width: 991px) {
    .nav-tile { flex: 1 1 calc(50% - 15px); }
}

@media (max-width: 560px) {
    .nav-tile { flex: 1 1 100%; }
}


/* Hero name block (index.html): the name is the page's h1 and its primary
   object; the tree below it is decorative. Sized independently of the
   template's .box-intro h1 scale, so it carries its own responsive steps. */

.box-intro .hero-name {
    font-size: 30px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00376C;
    line-height: 1.25;
    margin: 0 0 12px;
}

/* the role and affiliation lines sat at #888 and dropped out next to the
   navy tree */
.box-intro .table-cell h4 {
    color: #555555;
}

@media (max-width: 1200px) {
    .box-intro .hero-name { font-size: 27px; }
}

@media (max-width: 991px) {
    .box-intro .hero-name { font-size: 23px; }
}

@media (max-width: 670px) {
    .box-intro .hero-name { font-size: 17px; letter-spacing: 1px; }
}

/* ragged-right body copy that still breaks long German compounds */
.hyphenate {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

/* On narrow phones, put the About text below the portrait without enlarging
   the image. Above 520px, the original desktop attributes remain untouched. */
@media only screen and (max-width: 520px) {
    .about-photo {
        display: block;
        float: none;
        width: 276px;
        max-width: 100%;
        height: auto;
        margin: 10px auto 24px;
    }
}

/* BPS syntax tree hero mark (index.html)
==================================================
   Unlabelled mother nodes; terminals I / DO / Linguistics = [I [DO Linguistics]].
   Branches draw bottom-up so the motion mirrors the derivation (Merge applying
   twice) instead of being arbitrary. Pure SVG + CSS: animated-headline.js plays
   no part in this element. */

.box-intro .tree-headline {
    font-size: 0;
    line-height: 0;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 26px;
    padding: 0;
}

.bps-tree {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.bps-tree .br {
    fill: none;
    stroke: #00376C;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: treeDraw 0.55s ease forwards;
}

.bps-tree .nd {
    fill: #D2C067;
    opacity: 0;
    animation: treeFade 0.3s ease forwards;
}

.bps-tree .tl {
    fill: #00376C;
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 30px;
    letter-spacing: normal;
    text-transform: none;
    text-anchor: middle;
    opacity: 0;
    animation: treeFade 0.45s ease forwards;
}

/* Build order, right to left, with a beat between each step:
   Linguistics, do, lower branches + mother node, I, upper branches + root.
   Runs about 3.2s in total: slow enough to read step by step, short enough
   to finish before a visitor scrolls past. */
.bps-tree .tl-ling { animation-delay: 0.10s; }
.bps-tree .tl-do   { animation-delay: 0.55s; }
.bps-tree .br-2    { animation-delay: 1.00s; }
.bps-tree .br-1    { animation-delay: 1.10s; }
.bps-tree .nd-mid  { animation-delay: 1.60s; }
.bps-tree .tl-i    { animation-delay: 1.90s; }
.bps-tree .br-4    { animation-delay: 2.35s; }
.bps-tree .br-3    { animation-delay: 2.45s; }
.bps-tree .nd-root { animation-delay: 2.90s; }

@keyframes treeDraw { to { stroke-dashoffset: 0; } }
@keyframes treeFade { to { opacity: 1; } }

/* Keyword strip: four fixed slots, one word lit at a time, travelling left to
   right and then back to the first slot. Grid holds the slots steady so nothing
   reflows as words come and go. */

.kw-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 10px;
}

.kw-strip b {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: #00376C;
    white-space: nowrap;
    opacity: 0.2;
    animation: kwCycle 8s linear infinite;
}

.kw-strip b:nth-child(1) { animation-delay: 0s; }
.kw-strip b:nth-child(2) { animation-delay: 2s; }
.kw-strip b:nth-child(3) { animation-delay: 4s; }
.kw-strip b:nth-child(4) { animation-delay: 6s; }

@keyframes kwCycle {
    0%   { opacity: 0.2; }
    4%   { opacity: 1; }
    21%  { opacity: 1; }
    25%  { opacity: 0.2; }
    100% { opacity: 0.2; }
}

@media (max-width: 670px) {
    /* four slots don't fit on one line at phone widths: wrap to 2 x 2 and
       let the highlight travel across the block */
    .kw-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2px;
        max-width: 330px;
    }
    .kw-strip b {
        font-size: 13px;
        letter-spacing: 1px;
    }
    /* 34px pushed "Linguistics" hard against the right edge of the container */
    .bps-tree .tl { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .bps-tree .br { stroke-dashoffset: 0; animation: none; }
    .bps-tree .nd,
    .bps-tree .tl,
    .kw-strip b { opacity: 1; animation: none; }
}



/* mouse effect */

.mouse {
    position: absolute;
    width: 22px;
    height: 50px;
    bottom: 40px;
    left: 50%;
    margin-left: -12px;
    border-radius: 15px;
    border: 2px solid #00376C;
    -webkit-animation: intro 1s;
    animation: intro 1s;
}

.scroll {
    display: block;
   /* width: 10px;
    height: 36px;*/
    margin: 8px auto;
    border-radius: 6px;
    background:fff;
    -webkit-animation: finger 2s infinite;
    animation: finger 2s infinite;
    color:#00376C; 
}



@-webkit-keyframes intro {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes intro {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes finger {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
}

@keyframes finger {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
}


/* text rotate */

.box-headline {
      padding-left: 50px;
    padding-right: 50px;
    font-size: 50px;
    line-height: 1.0;
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
}

.box-words-wrapper {
    display: inline-block;
    position: relative;
}

.box-words-wrapper b {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    left: 0;
    top: 0;
}

.box-words-wrapper b.is-visible {
    position: relative;
}

.no-js .box-words-wrapper b {
    opacity: 0;
}

.no-js .box-words-wrapper b.is-visible {
    opacity: 1;
}

.box-headline.rotate-2 .box-words-wrapper {
    -webkit-perspective: 300px;
    perspective: 300px;
}

.box-headline.rotate-2 i,
.box-headline.rotate-2 em {
    display: inline-block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.box-headline.rotate-2 b {
    opacity: 0;
}

.box-headline.rotate-2 i {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: translateZ(-20px) rotateX(90deg);
    transform: translateZ(-20px) rotateX(90deg);
    opacity: 0;
}

.is-visible .box-headline.rotate-2 i {
    opacity: 1;
}

.box-headline.rotate-2 i.in {
    -webkit-animation: box-rotate-2-in 0.4s forwards;
    animation: box-rotate-2-in 0.4s forwards;
}

.box-headline.rotate-2 i.out {
    -webkit-animation: box-rotate-2-out 0.4s forwards;
    animation: box-rotate-2-out 0.4s forwards;
}

.box-headline.rotate-2 em {
    -webkit-transform: translateZ(20px);
    transform: translateZ(20px);
}

.no-csstransitions .box-headline.rotate-2 i {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    opacity: 0;
}

.no-csstransitions .box-headline.rotate-2 i em {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.no-csstransitions .box-headline.rotate-2 .is-visible i {
    opacity: 1;
}

@-webkit-keyframes box-rotate-2-in {
    0% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(90deg);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(0deg);
    }
}

@keyframes box-rotate-2-in {
    0% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(90deg);
        transform: translateZ(-20px) rotateX(90deg);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(-10deg);
        transform: translateZ(-20px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(0deg);
        transform: translateZ(-20px) rotateX(0deg);
    }
}

@-webkit-keyframes box-rotate-2-out {
    0% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(0);
    }
    60% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(-100deg);
    }
    100% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(-90deg);
    }
}

@keyframes box-rotate-2-out {
    0% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(0);
        transform: translateZ(-20px) rotateX(0);
    }
    60% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(-100deg);
        transform: translateZ(-20px) rotateX(-100deg);
    }
    100% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(-90deg);
        transform: translateZ(-20px) rotateX(-90deg);
    }
}


/* portfolio section
==================================================*/

.portfolio .categories-grid span {
    font-size: 30px;
    margin-bottom: 30px;
    display: inline-block;
}

.portfolio .categories-grid .categories ul li {
    list-style: none;
    margin: 20px 0;
}

.portfolio .categories-grid .categories ul li a {
    display: inline-block;
    color: #60606e;
    padding: 0 10px;
    margin: 0 10px;
    -webkit-transition: all .2s ease-in-out .2s;
    transition: all .2s ease-in-out .2s;
}

.portfolio .categories-grid .categories ul li a:hover,
.portfolio .categories-grid .categories ul li a:focus {
    text-decoration: none;
}

.portfolio .categories-grid .categories ul li a.active {
    margin-left: 0;
    background-color: #D2C067;
    padding: 0px 20px;
    color: #0A0A19;
    border-radius: 25px;
    text-decoration: none;
}

.portfolio_filter {
    padding-left: 0;
}

.portfolio_item {
    position: relative;
    overflow: hidden;
    display: block;
}

.portfolio_item .portfolio_item_hover {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .8);
    -webkit-transform: translate(-100%);
    transform: translate(-100%);
    opacity: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.portfolio_item .portfolio_item_hover .item_info {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 10px;
    width: 100%;
    font-weight: bold;
}

.portfolio_item .portfolio_item_hover .item_info span {
    display: block;
    color: #fff;
    font-size: 18px;
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    -webkit-transition: all .2s ease-in-out .2s;
    transition: all .2s ease-in-out .2s;
    opacity: 0;
}

.portfolio_item .portfolio_item_hover .item_info em {
    font-style: normal;
    display: inline-block;
    background-color: #D2C067;
    padding: 5px 20px;
    border-radius: 25px;
    color: #333;
    margin-top: 10px;
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    -webkit-transition: all .3s ease-in-out .3s;
    transition: all .3s ease-in-out .3s;
    opacity: 0;
    font-size: 10px;
    letter-spacing: 2px;
}

.portfolio_item:hover .portfolio_item_hover {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.portfolio_item:hover .item_info em,
.portfolio_item:hover .item_info span {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.portfolio .categories-grid .categories ul li {
    float: left;
}

.portfolio .categories-grid .categories ul li a {
    padding: 0 10px;
    -webkit-transition: all .2s ease-in-out .2s;
    transition: all .2s ease-in-out .2s;
}

.portfolio_filter {
    padding-left: 0;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-inner {
    padding-bottom: 0 !important;
    padding-top: 55px;
}


/* footer
==================================================*/

footer {
    padding: 30px 0;
    text-align: center;
    background: #f5f5f5
}

.copyright {
    color: #ccc;
    margin-bottom: 0;
}

footer img {
    margin: 0 auto;
}


/* backto top
==================================================*/

.cd-top {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 20px;
    line-height: 40px;
    font-size: 20px;
    right: 10px;
    text-align: center;
    color: #fff;
    background: #00376C;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity .3s 0s, visibility 0s .3s;
    transition: opacity .3s 0s, visibility 0s .3s;
}

.cd-top.cd-is-visible,
.cd-top.cd-fade-out,
.no-touch .cd-top:hover {
    -webkit-transition: opacity .3s 0s, visibility 0s 0s;
    transition: opacity .3s 0s, visibility 0s 0s;
}

.cd-top.cd-is-visible {
    /* the button becomes visible */
    visibility: visible;
    opacity: 1;
}

.cd-top.cd-fade-out {
    opacity: .5;
}

.no-touch .cd-top:hover,
.no-touch .cd-top:focus {
    background-color: #D2C067;
    opacity: 1;
    color: #0A0A19;
}


/* About page
==================================================*/

.top-bar {
    color: #333;
    padding: 150px 0 150px;
    background: -webkit-linear-gradient( rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url(../img/textbanner.jpeg);
    background: linear-gradient( rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url(../img/textbanner.jpeg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    text-align: center;
}

.top-bar h1 {
    font-size: 60px;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
    line-height: 50px;
}

.top-bar p {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    color: #777;
}

.top-bar p a {
    color: #777;
}

.top-bar p a:hover,
.top-bar p a:focus {
    color: #555;
    text-decoration: none;
}

.social-ul {
    list-style: none;
    display: inline-block;
    padding-left: 0;
}

.social-ul li {
    margin: 0 10px;
    float: left;
}

.social-ul li a {
    font-size: 25px;
    color: #555;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.social-ul li a:hover {
    color: #888;
}


/* Services page
==================================================*/

.size-50 {
    font-size: 50px;
}

.service-box {
    margin-bottom: 30px;
}

.service-box h3 {
    margin-top: 0;
}


/* contact page
==================================================*/

.details-text i {
    margin-right: 10px;
}

.textarea-contact {
    height: 200px;
    width: 100%;
    border: solid 1px rgba(0, 0, 0, .1);
    position: relative;
}

.textarea-contact textarea {
    height: 100%;
    width: 100%;
    border: 0;
    padding: 20px;
    background-color: transparent;
    float: left;
    z-index: 2;
    font-size: 14px;
    color: #9a9a9a;
    resize: none;
}

.textarea-contact > span {
    position: absolute;
    top: 20px;
    left: 20px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 12px;
    text-transform: uppercase;
    color: #cdcdcd;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    z-index: 1;
}

.input-contact {
    height: 40px;
    width: 100%;
    border: solid 1px rgba(0, 0, 0, .1);
    position: relative;
    margin-bottom: 30px;
}

.input-contact input[type="text"] {
    height: 100%;
    width: 100%;
    border: 0;
    padding: 0 20px;
    float: left;
    position: relative;
    background-color: transparent;
    z-index: 2;
    font-size: 14px;
    color: #9a9a9a;
}

.input-contact > span {
    position: absolute;
    top: 50%;
    left: 20px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 12px;
    text-transform: uppercase;
    color: #cdcdcd;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    z-index: 1;
}

.input-contact > span.active,
.textarea-contact > span.active {
    color: #D2C067;
    font-size: 10px;
    top: 0px;
    left: 5px;
    background-color: #fff;
    padding: 5px
}

input:focus,
textarea:focus {
    outline: none;
}

.contact-info {
    margin-top: 20px;
}

.contact-info i {
    height: 30px;
    width: 30px;
    display: inline-block;
    background: #D2C067;
    text-align: center;
    line-height: 33px;
    margin-right: 10px;
    color: #0A0A19;
    font-size: 21px;
}

.contact-info p {
    display: inline-block;
    margin-right: 20px;
}

.btn-box {
    background: #D2C067;
    padding: 10px 50px;
    border-radius: 0;
    color: #0A0A19;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.btn-box:hover,
.btn-box:focus {
    background: #D2C067;
    color: #0A0A19;
}


/* single project page
==================================================*/

.cat-ul {
    padding-left: 0;
    list-style: none
}

.cat-ul li i {
    margin-right: 10px;
    color: #D2C067;
}

/* italicised text inside list items (e.g. journal names) is content, not
   the decorative bullet icon above -- keep it dark for legibility */
.cat-ul li i:not(.ion-ios-circle-filled) {
    color: #0A0A19;
}


.img {
  width: auto;
  height: 150px;
}



.button1 {
    background-color: #00376C;
    /*background-image: linear-gradient(to right, #D2C067 , #00376C);*/
    border: none;
    color: #fff;
    padding: 5px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
}      /* Blue to Green */

.button1:hover {
  background-color: #D2C067;
  color: #0A0A19;
}

                            



/* Responsive media queries
==================================================*/
@media (max-width: 1700px) {
    
       .box-intro h1 {
        font-size: 60px;
    }
    
}

@media (max-width: 1200px) {
    
       .box-intro h1 {
        font-size: 60px;
    }
    
}


@media (max-width: 991px) {
    .portfolio .categories-grid span {
        margin-bottom: 0;
        text-align: center;
        width: 100%;
    }
    .portfolio .categories-grid .categories ul li {
        text-align: center;
    }
    .portfolio .categories-grid .categories ul li a {
        margin-left: 0;
    }
    .col-md-6 h3 {
        margin-top: 30px;
        padding: 20px;
        
    }
    
   .box-intro h1 {
        font-size: 40px;
    }
}

@media only screen and (max-width: 670px) {
    .box-headline {
        font-size: 100px;
    }
    
    .box-intro h4 {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    font-size: 14px;
    line-height: 1
}
    .box-intro h5 {
        font-size: 14px;
    }
    
    .box-intro h1 {
        font-size: 38px;
    }
    
    .box-primary-nav a {
        padding: 5px 1em;
        font-size: 14px;
    }
    .box-primary-nav {
        padding: 80px 0 0;
    }
    .box-primary-nav .box-social a {
        font-size: 23px;
    }
    .top-bar h1 {
        font-size: 40px;
        line-height: 30px;
    }
    .portfolio .categories-grid .categories ul li {
        float: none;
    }
    
  .col-md-6 h3 {
        margin-top: 30px;
        padding: 20px;
        
    }
}

@media only screen and (max-width: 520px) {
       .box-intro {
    text-align: center;
    display: table;
    height: 100vh;
    width:100%; 
}
    
    .box-headline {
        font-size: 80px;
    }
    
 
    
     .box-intro h4 {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    font-size: 14px;
    line-height: 1
}
  
    
    .box-intro h5 {
        font-size: 12px;
    }
       .box-intro h4 {
        font-size: 12px;
    }

     .box-intro h1 {
        font-size: 20px;
    }
    
    
    .main-container {
        padding: 50px 0;
    }
    
    
    
    
     .col-md-6 h3 {
        margin-top: 30px;
        padding: 20px;
        
    }
}

@media only screen and (max-width: 420px) {
    .box-headline {
        font-size: 50px;
    }
    
     .box-intro h4 {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    font-size: 14px;
    line-height: 1
}
    
    .box-intro h5 {
        font-size: 12px;
    }
    
     .box-intro h4 {
        font-size: 12px;
    }

    .top-bar h1 {
        font-size: 20px;
        line-height: 30px;
    }

      .col-md-6 h3 {
        margin-top: 30px;
        padding: 20px;
        
    }

}

@media only screen and (max-height: 420px) {
    .mouse {
            display: none;
     }
    .scroll {
    	        display: none;
    }
}

/* Short landscape viewports: keep the hero identity below the 80px header
   and compact the decorative material so it fits without overlap. */
@media only screen and (orientation: landscape) and (max-height: 520px) {
    .box-intro {
        display: block;
        height: auto;
        min-height: 100vh;
    }

    .box-intro .table-cell {
        display: block;
        padding: 96px 20px 24px;
    }

    .box-intro .hero-name {
        font-size: 20px;
    }

    .box-intro .table-cell h4 {
        font-size: 15px;
        line-height: 1.2;
        margin: 4px 0;
    }

    .box-intro h5 {
        font-size: 14px;
        line-height: 1.2;
        margin: 4px 0;
    }

    .box-intro .h-30 {
        height: 8px;
    }

    .bps-tree {
        max-width: 360px;
    }

    .box-intro .tree-headline {
        margin-bottom: 10px;
    }

    .mouse,
    .scroll {
        display: none;
    }
}
