@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@1,300..900&display=swap");
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
}
::-webkit-scrollbar {
    display: none;
}
html {
    scroll-behavior: smooth;
}
:root {
  --text-color: white;
  --color: rgb(226, 17, 153);
  --first: white;
  --second: black;
  --mob-color: #363636;
  --box-bg: #333;
  --clr-bg: #3e3e3e;
  --place-clr: #afafaf;
  --bg-color: #2d2d2e;
}

body.dark-mode {
  --text-color: #222;
  --bg-color: #f2f2f2;
  --first: #222;
  --second: #fff;
  --mob-color: #eae6e6;
  --box-bg: #e5e5e5;
  --clr-bg: #e5e5e5;
  --place-clr: #6b6b6b;
}

body {
  background-color: var(--bg-color);
}
body section {
  margin-left: 50px;
  margin-right: 50px;
  min-height: 100vh;
  padding: 8rem 3.5% 3rem;
}

.container {
  margin: 0 auto;
  max-width: 1250px;
  width: 100%;
}

header {
  position: fixed;
  top: 0px;
  left: 0px;
  height: 90px;
  width: 100%;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
}
header nav {
  width: 100%;
  max-width: 1250px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header nav .logo {
  z-index: 1;
}
header nav .logo a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 32px;
  font-weight: 600;
  color: var(--first);
}
header nav .logo a span {
  color: var(--color);
}
header nav .option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
header nav .option ul {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  gap: 10px;
  list-style: none;
  z-index: 1;
}
header nav .option ul li {
  position: relative;
}
header nav .option ul li a {
  position: relative;
  text-decoration: none;
  color: var(--first);
  font-size: 13px;
  font-weight: 400;
  transition: 0.3s ease;
}
header nav .option ul li a::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--color);
  transition: 0.3s ease;
}
header nav .option ul li a:hover {
  color: var(--color);
}
header nav .option ul li a:hover::before {
  width: 100%;
}
header nav .option .mode {
  color: var(--text-color);
  font-size: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  position: relative;
}
header nav .option .mode .mode,
header nav .option .mode i {
  font-size: 15px;
}
header nav .option .mode .fa-moon,
header nav .option .mode .fa-sun {
  position: absolute;
  animation: animate 0.5s;
}
header nav .option .mode .fa-moon {
  display: none;
}
header nav .option .mode input:checked ~ .fa-moon {
  display: block;
}
header nav .option .mode input:checked ~ .fa-sun {
  display: none;
}
header nav .option .mode input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}
@keyframes animate {
  0% {
    transform: rotate(-360deg) scale(0);
    opacity: 0;
  }
  75% {
    transform: rotate(25deg);
  }
}
header nav .option .hamburger {
  position: relative;
  width: 30px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  scale: 0.9;
  display: none;
}
header nav .option .hamburger .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--first);
  margin: 6px 0;
  transition: 0.4s;
}
header nav .option .hamburger::before, header nav .option .hamburger::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--first);
  margin: 6px 0;
  transition: 0.4s;
}
header nav .option .hamburger.active::before {
  transform: rotate(-45deg) translate(-8px, 5px);
}
header nav .option .hamburger.active::after {
  transform: rotate(45deg) translate(-8px, -5px);
}
header nav .option .hamburger.active .bar {
  opacity: 0;
}

.home .home-info {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home .home-info .left {
  flex: 1;
}
.home .home-info .left h3 {
  font-size: 1.8em;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--first);
  border-radius: 25px;
}
.home .home-info .left h1 {
  font-size: 2.5em;
  color: var(--first);
}
.home .home-info .left h4 {
  color: var --first;
  font-size: 1.8em;
  font-weight: bold;
  min-width: 20px;
  margin-bottom: 20px;
}
.home .home-info .left h4 span {
  color: var(--color);
}
.home .home-info .left p {
  width: 90%;
  font-size: 16px;
  font-weight: 400;
  line-height: 17px;
  color: var(--first);
  -webkit-mask-box-image: 50px;
          mask-border: 50px;
  margin-bottom: 3px;
  text-align: justify;
}
.home .home-info .left .social {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}
.home .home-info .left .social a {
  text-decoration: none;
  background: transparent;
  color: var(--color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease;
  border: 2px solid var(--color);
}
.home .home-info .left .social a i {
  font-size: 12px;
}
.home .home-info .left .social a:hover {
  color: #fff;
  background: var(--color);
  transform: translateY(-5px);
  box-shadow: 0 0 0.7rem var(--color);
}
.home .home-info .left .btn {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}
.home .home-info .left .btn button {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 25px;
  color: var(--color);
  background: transparent;
  border: 2px solid var(--color);
  outline: none;
  cursor: pointer;
  transition: 0.3s ease-in;
}
.home .home-info .left .btn button:hover {
  color: #fff;
  background: var(--color);
  transform: translateY(-5px);
  box-shadow: 0 0 0.7rem var(--color);
}
.home .home-info .right {
  flex: 1;
}
.home .home-info .right .profile {
  text-align: right;
}
.home .home-info .right .profile img {

  width: 100%;
  border-radius: 15px;
  transition: 2s ease;
  width: 300px;
  height: 300px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
  border-radius: 50%;
  background: var(--color);
  border: 3px solid var(--color);
  box-shadow: 0 0 20px var(--color);
  cursor: pointer;
  transition: .7s ease;
}
.home .home-info .right .profile img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px var(--color);
  transform: scale(1.2);
}

img {
  width: 100%;
}

.about .about-wrapper {
  display: flex;
  align-items: center;
  gap: 5em;
}
.about .about-wrapper .about-left {
  flex: 1;
}
.about .about-wrapper .about-left .about-img img {
  width: 300px;
  height: 300px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
  border-radius: 50%;
  border: 3px solid var(--color);
  box-shadow: 0 0 20px var(--color);
  cursor: pointer;
  transition: 0.3s ease;
}
.about .about-wrapper .about-left .about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px var(--color);
}
.about .about-wrapper .about-right {
  flex: 2;
}
.about .about-wrapper .about-right .about-info h2 {
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 0.5px;
  color: var(--first);
  margin-bottom: 10px;
}
.about .about-wrapper .about-right .about-info h2 span {
  color: var(--color);
}
.about .about-wrapper .about-right .about-info h3 {
  font-size: 1.1em;
  color: var(--first);
  font-weight: 500;
  margin-bottom: 20px;
}
.about .about-wrapper .about-right .about-info p {
  font-size: 16px;
  font-weight: 400;
  color: var(--first);
  line-height: 1.5em;
  margin-bottom: 20px;
}
.about .about-wrapper .about-right .about-info button {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 25px;
  color: var(--color);
  background: transparent;
  border: 2px solid var(--color);
  outline: none;
  cursor: pointer;
  transition: 0.3s ease-in;
}
.about .about-wrapper .about-right .about-info button:hover {
  color: #fff;
  background: var(--color);
  transform: translateY(-5px);
  box-shadow: 0 0 0.7rem var(--color);
}

.services h2 {
  font-size: 2em;
  text-align: center;
  color: var(--first);
  margin-bottom: 1em;
}
.services h2 span {
  color: var(--color);
}
.services .services-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
}
.services .services-box .box {
  background: var(--box-bg);
  text-align: center;
  width: 200px;
  padding: 5px;
  border-radius: 15px;
  border: 2px solid var(--box-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1em;
  transition: 0.4s ease;
}
.services .services-box .box:hover {
  scale: 1;
  border: 2px solid var(--color);
}
.services .services-box .box .icon {
  font-size: 1.5em;
  color: var(--color);
}
.services .services-box .box h3 {
  font-size: 1em;
  color: var(--first);
}
.services .services-box .box p {
  font-size: 10px;
  font-weight: 200;
  color: var(--first);
  letter-spacing: 0.4px;
  line-height: 1em;
}
.services .services-box .box .services-btn {
  width: 200px;
  margin: 5px;
}
.services .services-box .box .services-btn button {
  font-size: 10px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 25px;
  color: var(--color);
  background: transparent;
  border: 2px solid var(--color);
  outline: none;
  cursor: pointer;
  transition: 0.3s ease;
}
.services .services-box .box .services-btn button:hover {
  color: #fff;
  background: var(--color);
  transform: translateY(-5px);
  box-shadow: 0 0 0.5rem var(--color);
}

.portfolio h2 {
  font-size: 2em;
  text-align: center;
  color: var(--first);
  margin-bottom: 1em;
}
.portfolio h2 span {
  color: var(--color);
}
.portfolio .portfolio-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5em;
}
.portfolio .portfolio-wrapper .portfolio-box {
  position: relative;
  width: 250px;
  height:200px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.portfolio .portfolio-wrapper .portfolio-box img {
  width: 100%;
   height: 100%;
  border-radius: 15px;
  transition: 0.5s ease;
  object-fit: cover;
}
.portfolio .portfolio-wrapper .portfolio-box:hover img {
  transform: scale(1.2);
}
.portfolio .portfolio-wrapper .portfolio-box .portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 1em;
  background: linear-gradient(rgba(0, 0, 0, 0.4), var(--color));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  transform: translateY(100%);
  transition: 0.5s ease;
}
.portfolio .portfolio-wrapper .portfolio-box .portfolio-info h4 {
  font-size: 1em;
  color: #fff;
  margin-bottom: 3px;
}
.portfolio .portfolio-wrapper .portfolio-box .portfolio-info P {
  font-size: 8px;
  font-weight: 300;
  line-height: 1em;
  margin: 5px 10px 10px;
  color: #fff;
}
.portfolio .portfolio-wrapper .portfolio-box .portfolio-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  background: #fff;
  border-radius: 50%;
}
.portfolio .portfolio-wrapper .portfolio-box .portfolio-info a i {
  font-size: 1em;
  color: #000;
}
.portfolio .portfolio-wrapper .portfolio-box:hover .portfolio-info {
  transform: translateY(0);
}

/* ================= CONTACT ================= */

.contacts{
    padding: 80px 8%;
    background: var(--second-bg);
}

.contacts h2{
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--first);
}

.contacts h2 span{
    color: var(--color);
}

.contacts form{
    max-width: 800px;
    margin: auto;
}

.contacts .input-box{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.contacts .input-box input{
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--clr-bg);
    color: var(--first);
    font-size: 1rem;
    outline: none;
    transition: .3s;
}

.contacts .input-box input:focus{
    border-color: var(--color);
    box-shadow: 0 0 15px var(--color);
}

.contacts textarea{
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--clr-bg);
    color: var(--first);
    font-size: 1rem;
    resize: none;
    outline: none;
    transition: .3s;
}

.contacts textarea:focus{
    border-color: var(--color);
    box-shadow: 0 0 15px var(--color);
}

.contacts input::placeholder,
.contacts textarea::placeholder{
    color: var(--place-clr);
}

.contacts button{
    display: block;
    margin: 30px auto 0;
    padding: 14px 40px;
    border: 2px solid var(--color);
    border-radius: 50px;
    background: var(--color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: .3s ease;
}

.contacts button:hover{
    background: transparent;
    color: var(--color);
    box-shadow: 0 0 20px var(--color);
    transform: translateY(-5px);
}

/* Responsive */

@media (max-width:768px){

    .contacts{
        padding: 60px 5%;
    }

    .contacts .input-box{
        flex-direction: column;
        gap: 15px;
    }

    .contacts h2{
        font-size: 2.2rem;
    }
}
/* ================= FOOTER ================= */

.footer{
    width:100%;
    background:var(--clr-bg);
    border-top:2px solid var(--color);
    padding:40px 8%;
}

.footer-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:20px;
    text-align:center;
}

/* Name */

.footer-text h3{
    font-size:2rem;
    color:var(--color);
    margin-bottom:10px;
}

.footer-text p{
    color:var(--first);
    font-size:1rem;
    letter-spacing:1px;
}

/* Social Icons */

.footer-social{
    display:flex;
    gap:18px;
}

.footer-social a{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid var(--color);
    border-radius:50%;
    color:var(--color);
    font-size:1.4rem;
    text-decoration:none;
    transition:.4s ease;
}

.footer-social a:hover{
    background:var(--color);
    color:#fff;
    transform:translateY(-5px);
    box-shadow:0 0 20px var(--color);
}

/* Copyright */

.footer-bottom p{
    color:var(--first);
    font-size:0.95rem;
}

.footer-bottom span{
    color:var(--color);
    font-weight:600;
}

/* Scroll Top */

.scroll-top a{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--color);
    color:#fff;
    border-radius:50%;
    text-decoration:none;
    font-size:1.3rem;
    transition:.4s ease;
}

.scroll-top a:hover{
    transform:translateY(-5px);
    box-shadow:0 0 20px var(--color);
}

/* Responsive */

@media (max-width:768px){

    .footer{
        padding:30px 5%;
    }

    .footer-text h3{
        font-size:1.6rem;
    }

    .footer-text p{
        font-size:.9rem;
    }

    .footer-social{
        gap:15px;
    }

    .footer-social a,
    .scroll-top a{
        width:45px;
        height:45px;
        font-size:1.2rem;
    }

    .footer-bottom p{
        font-size:.85rem;
    }
}
/* ===========================
   RESPONSIVE - PART 1
   Header + Home
=========================== */

/* Tablet */

@media (max-width: 992px) {

    body section{
        margin-left:20px;
        margin-right:20px;
        padding:7rem 4% 3rem;
    }

    header nav{
        padding:0 20px;
    }

    .home .home-info{
        gap:40px;
    }

    .home .home-info .left h1{
        font-size:2.2em;
    }

    .home .home-info .left h3{
        font-size:1.6em;
    }

    .home .home-info .left h4{
        font-size:1.4em;
    }

    .home .home-info .right .profile img{
        width:250px;
        height:250px;
    }

}


/* Mobile */

@media (max-width:768px){

    body section{
        margin-left:15px;
        margin-right:15px;
        padding:6rem 4% 2rem;
    }

    header{
        height:70px;
    }

    header nav{
        padding:0 15px;
    }

    header nav .logo a{
        font-size:26px;
    }

    .home .home-info{

        flex-direction:column-reverse;
        text-align:center;
        gap:35px;

    }

    .home .home-info .left{
        width:100%;
    }

    .home .home-info .left p{
        width:100%;
    }

    .home .home-info .left .social{
        justify-content:center;
    }

    .home .home-info .left .btn{
        justify-content:center;
        flex-wrap:wrap;
    }

    .home .home-info .right .profile{
        text-align:center;
    }

    .home .home-info .right .profile img{
        width:220px;
        height:220px;
    }

}


/* Small Mobile */

@media (max-width:480px){

    body section{
        margin-left:10px;
        margin-right:10px;
    }

    .home .home-info .left h1{
        font-size:1.8em;
    }

    .home .home-info .left h3{
        font-size:1.3em;
    }

    .home .home-info .left h4{
        font-size:1.1em;
    }

    .home .home-info .left p{
        font-size:14px;
        line-height:24px;
    }

    .home .home-info .right .profile img{
        width:180px;
        height:180px;
    }

}
/* =====================================
   RESPONSIVE PART - 2
   ABOUT + SERVICES + PORTFOLIO
====================================== */

/* ================= TABLET ================= */

@media (max-width: 992px){

    /* ---------- About ---------- */

    .about .about-wrapper{
        gap:3em;
    }

    .about .about-wrapper .about-left .about-img{
        display:flex;
        justify-content:center;
    }

    .about .about-wrapper .about-left .about-img img{
        width:250px;
        height:250px;
    }

    .about .about-wrapper .about-right .about-info h2{
        font-size:1.8em;
    }

    .about .about-wrapper .about-right .about-info p{
        font-size:15px;
    }


    /* ---------- Services ---------- */

    .services .services-box{
        gap:20px;
    }

    .services .services-box .box{
        width:220px;
    }


    /* ---------- Portfolio ---------- */

    .portfolio .portfolio-wrapper{
        gap:20px;
    }

    .portfolio .portfolio-wrapper .portfolio-box{
        width:300px;
        height:220px;
    }

}


/* ================= MOBILE ================= */

@media (max-width:768px){

    /* ---------- About ---------- */

    .about .about-wrapper{

        flex-direction:column;

        text-align:center;

        gap:40px;

    }

    .about .about-wrapper .about-left{
        width:100%;
    }

    .about .about-wrapper .about-left .about-img{
        display:flex;
        justify-content:center;
    }

    .about .about-wrapper .about-right{
        width:100%;
    }

    .about .about-wrapper .about-right .about-info p{

        text-align:justify;

    }

    .about .about-wrapper .about-right .about-info button{

        margin:auto;

    }


    /* ---------- Services ---------- */

    .services .services-box{

        justify-content:center;

        gap:20px;

    }

    .services .services-box .box{

        width:45%;

    }


    /* ---------- Portfolio ---------- */

    .portfolio .portfolio-wrapper{

        justify-content:center;

        gap:20px;

    }

    .portfolio .portfolio-wrapper .portfolio-box{

        width:45%;

        height:220px;

    }

}


/* ================= SMALL MOBILE ================= */

@media (max-width:480px){

    /* ---------- About ---------- */

    .about .about-wrapper .about-left .about-img img{

        width:180px;

        height:180px;

    }

    .about .about-wrapper .about-right .about-info h2{

        font-size:1.6em;

    }

    .about .about-wrapper .about-right .about-info h3{

        font-size:1em;

    }

    .about .about-wrapper .about-right .about-info p{

        font-size:14px;

        line-height:24px;

    }


    /* ---------- Services ---------- */

    .services .services-box .box{

        width:100%;

        max-width:320px;

    }

    .services .services-box .box p{

        font-size:12px;

        line-height:18px;

    }

    .services .services-box .box .services-btn{

        width:100%;

    }


    /* ---------- Portfolio ---------- */

    .portfolio .portfolio-wrapper .portfolio-box{

        width:100%;

        max-width:320px;

        height:220px;

    }

    .portfolio .portfolio-wrapper .portfolio-box .portfolio-info h4{

        font-size:18px;

    }

    .portfolio .portfolio-wrapper .portfolio-box .portfolio-info p{

        font-size:12px;

        line-height:18px;

    }

}