/*
Theme Name: Jesnin Theme
Author: Jesnin
Version: 1.0
Description: Custom portfolio theme
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  margin: 0;
  font-family: var(--secondary-font);
  background: var(--black);
  color: var(--white);
  font-weight: normal;
  font-size: 18px;
  overflow-x: hidden;
}

p, a, mark, h1,h2,h3,h4,h5{
  font-weight: normal;
  font-family: var(--secondary-font);
  color: var(--paragraph-color);
  background: none;
  color: var(--white);
  margin: 0;
}

ul, a{
  list-style: none;
  text-decoration: unset;
}

:root {
  --primary-font: "Instrument Serif", serif;
  --secondary-font: "Work Sans", sans-serif;

  --primary-color: #445def;
  --secondary-color: #080c2d;
  --tritiary-color: #020418;
  --fourth-color: #01010c;
  --paragraph-color: #858fa8;

  --border-color: #0f1528;

  --black: #010108;
  --white: #edeef2;

  --font-size1: 96px;
  --font-size2: 48px;
  --font-size3: 14px;

  --hover-border: #161e58;
  
}

/* Heading Sizes */

.ss-heading{
  color: var(--primary-color);
  font-size: var(--font-size3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: block;
  line-height: 100%;
  font-family: var(--secondary-font);
}

.ms-heading{
  font-size: var(--font-size2);
  font-family: var(--primary-font);
  color: var(--white);
  line-height: 100%;
}

.ms-heading mark{
  font-family: var(--primary-font);
  color: var(--primary-color);
  font-style: italic;
}

.ls-heading{
  font-size: var(--font-size1);
  font-family: var(--primary-font);
  line-height: 100%;
}

/* End of Heading Sizes */

.container {
  width: 100%;
  max-width: 1122px;
  margin: auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(2, 2, 2, 0.808);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid #060814;
}

/* Flex layout */
.nav-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo a{
  font-size: 24px;
  font-family: var(--primary-font);
}

/* Nav */
.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: #7f88a0;
  font-size: 14px;
  transition: 0.3s;
  position: relative;
  font-weight: 500;
}

.nav li a:hover,
.nav li.current_page_item a{
  color: #4c6fff;
}

.nav li.current_page_item a::after{
  width: 100%;
}

.nav li a:hover::after{
  width: 100%;
}

.nav li a::after{
  content: '';
  background: var(--primary-color);
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  width: 0%;
  height: 1px;
  transition: all ease-in-out 200ms;
}

/* CTA Button */
.cta-btn {
  text-align: center;
  color: var(--black);
  display: block;
  width: 105px;
  height: 36px;
  line-height: 36px;
  background: var(--primary-color);
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

/* Banner */

.banner-container{
  width: 100%;
  max-width: 1440px;
  margin: auto;
}

.main-banner{
  padding-top: 193px;
  padding-bottom: 160px;
}

.main-banner h2{
  
}

.main-banner h1{
  
}

.main-banner h1 span{
  display: block;
}

.main-banner h1 span mark{
  font-family: var(--primary-font);
  color: var(--primary-color);
  font-style: italic;
}

.main-banner p{
  margin-top: 32px;
  color: var(--paragraph-color);
  width: 576px;
  line-height: 30px;
}

.banner-btns{
  margin-top: 55px;
  display: flex;
  justify-content: start;
  gap: 20px;
  align-items: center;
}

.banner-btns a{
  font-size: var(--font-size3);
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
}

.banner-btns a:first-child{
  position: relative;
  padding-left: 24px;
  text-align: left;
  display: block;
  width: 140px;
  height: 46px;
  line-height: 46px;
  background: var(--primary-color);
  color: var(--black);
}

.banner-btns a svg{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 24px;;
}

.banner-btns a:first-child:hover{
  width: 145px;
  transition: all ease-in-out 200ms;
}

.banner-btns a:last-child{
  padding: 0 24px;
  border: 1px solid var(--border-color);
  height: 46px;
  line-height: 46px;
}

.banner-btns a:last-child:hover{
  background: var(--primary-color);
  color: var(--black);
}

.banner-img{
  position: absolute;
  top: 0;
  right: -120px;
  width: 70%;
}

.desktop-img{
  transform: translatey(0px);
	animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-25px);
	}
	100% {
		transform: translatey(0px);
	}
}

.mobile-img{
  display:none;
}

.banner-img img{
  width: 100%;
  border-radius: 25px;
}

.main-img{
  margin: 100px 0 0;
}

.main-img img{
  width: 100%;
  border-radius: 20px;
}

/* Services Section */

.services-sec{
  min-height: 0;
  background: var(--fourth-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: 128px;
  padding-bottom: 128px;
  position: relative;
}

.services-sec-boxes{
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-top: 48px;
}

.services-sec-boxes .service-box{
  width: 258px;
  max-width: 100%;
  min-height: 189px;
  border: 1px solid var(--border-color);
  background: #020418;
  padding: 24px;
  border-radius: 20px;
}

.services-sec-boxes .service-box:hover{
  border: 1px solid #0f1758;
  transition: all ease-in-out 300ms;
}

.service-icon {
  width: 46px;
  height: 46px;
  padding: 12px 12px;
  background: #080c2d;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.service-icon svg{
  color: var(--primary-color);
}

.services-sec-boxes .service-box h2{
  font-size: 18px;
  font-family: var(--primary-font);
  font-weight: 500;
}

.services-sec-boxes .service-box p{
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  color: #858fa8;
}

/* Project Section */

.project-sec-info{
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.project-sec-info a{
  position: relative;
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary-color);
  display: block;
  width: 120px;
  transition: all ease-in-out 200ms;
}

.project-sec-info a svg{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

/* Footer Section */

.footer-top{
  padding: 96px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.footer-sec-info{
  text-align: center;
}

.footer-sec-info h2{
  font-size: 36px;
  font-family: var(--primary-font);
}

.footer-sec-info h2 mark{
  font-family: inherit;
  font-style: italic;
  color: var(--primary-color);
}

.footer-sec-info p{
  color: var(--paragraph-color);
  width: 576px;
  margin: 30px auto;
  line-height: 30px;
}

.footer-sec-info a{
  position: relative;
  display: block;
  width: 175px;
  height: 52px;
  line-height: 52px;
  text-align: left;
  margin: auto;
  font-size: 14px;
  color: var(--secondary-color);
  background: var(--primary-color);
  border-radius: 50px;
  font-weight: 500;
  padding-left: 32px;
}

.footer-sec-info a svg{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 32px;
}

.footer-sec-info a:hover{
  width: 180px;
  transition: all ease-in-out 200ms;
}

/* Copyright Footer */

.footer-bottom{
  padding: 50px 0 40px;
}

.footer-box{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-info h2 a{
  font-size: 20px;
  font-family: var(--primary-font);
  color: var(--white);
  line-height: 100%;
}

.footer-info p{
  font-size: 14px;
  color: var(--paragraph-color);
  margin-top: 10px;
}

.footer-media{
  display: flex;
  justify-content: end;
  gap: 15px;
}

.footer-media a{
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: block;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  transition: all ease-in-out 200ms;
}

.footer-media a:hover{
  border-color: var(--primary-color);
}

.footer-media a:hover svg{
  color: var(--primary-color);
}

.copyright-footer{
  margin-top: 30px;
  font-size: 12px;
  text-align: center;
  color: var(--paragraph-color);
}

.copyright-footer a{
  color: inherit;
}

.copyright-footer a:hover{
  text-decoration: underline;
}

/* Gallery */

.gallery-container{
  max-width: 1300px;
  margin: auto;
  padding: 0 20px;
}

.gallery-info h2{
    font-size: 60px;
}

.gallery-info p{
    font-size: 18px;
    color: var(--paragraph-color);
    line-height: 28px;
    margin-top: 24px;
    width: 70%;
}

.gallery {
  margin-top: 50px;
  padding-bottom: 120px;
}

.gallery-boxes{
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.gallery-box {
  flex: 25%;
  padding: 0 4px;
}

.gallery-box figure{
  overflow: hidden;
  margin-top: 8px;
}

.gallery-box img {
  width: 100%;
  vertical-align: middle;
}

.gallery-box img:hover{
  transition: all ease-in-out 200ms;
  transform: scale(1.02);
}

/* Design */

.design{
  padding-bottom: 100px;
}

.design-container{
  width: 100%;
  max-width: 1440px;
  margin: auto;
  padding: 0 20px;
}

.display-info p{
  color: var(--paragraph-color);
  margin-top: 25px;
  width: 50%;
  line-height: 30px;
}

.display-boxes{
  padding-top: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 60px 30px;
}

.display-box{
  border-radius: 20px;
  min-height: 300px;
  width: 31%;
  max-width: 100%;
  position: relative;
  border: 1px solid var(--border);
}

.display-img{
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: var(--black);
  overflow: hidden;
}

.display-box:hover img{
  transform: scale(1.1);
  transition: all ease-in-out 200ms;
}

.display-img img{
  width: 100%;
}

.display-inner{
  padding: 25px;
}

.display-inner h2{
  font-size: 20px;
  font-family: var(--primary-font);
  font-weight: 500;
  margin-bottom: 15px;
}

.display-inner p{
  line-height: 20px;
  font-size: 14px;
  color: var(--paragraph-color);
}

.display-box a{
  font-size: 14px;
  margin-top: 10px;
  display: block;
  color: var(--paragraph-color);
  font-weight: 500;
}

.display-box a svg{
  color: inherit;
  position: relative;
  top: 4px;
}

.display-box a:hover{
  color: var(--primary-color);
}

/* Marquee */

.marquee {
  padding: 25px 0;
  border-top: 1px solid var(--border-color);
  width: 100%;
  overflow: hidden;

  -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      black 10%,
      black 90%,
      transparent
  );

  mask-image: linear-gradient(
      to right,
      transparent,
      black 10%,
      black 90%,
      transparent
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  padding: 0 3rem;
  font-family: var(--primary-font);
  font-size: 50px;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--paragraph-color);
}

.star {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 100%;
  color: var(--secondary-color);
}

@keyframes marquee-scroll {
  from {
      transform: translateX(0);
  }
  to {
      transform: translateX(-50%);
  }
}

/* Work */
.work-bottom{
  position: relative;
  padding: 100px 20px;
  background: url(pages/images/work-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.work-bottom::before{
  content: '';
  background: rgba(0, 0, 0, 0.82);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.w-btm-flex{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.w-btm-flex figure{
  width: 50%;
}

.w-btm-flex figure img{
  width: 100%;
}
.work-bottom q{
  font-family: var(--primary-font);
  font-size: 35px;
  line-height: 50px;
  letter-spacing: 10%;
  text-align: center;
  text-transform: uppercase;
}
.work-bottom span{
  font-family: var(--secondary-font);
}