* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #080808;
  color: #fff;
}

#header {
  width: 100%;
  height: 100vh;
  background-image: url(images/background.png);
  background-size: cover;
  background-position: center;
  position: relative;
}

.container {
  padding: 10px 5%;
  max-width: 1200px;
  margin: auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  width: 140px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  position: relative;
  transition: 0.3s ease;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: rgb(216, 187, 255);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after {
  width: 100%;
}

nav .fa-bars,
nav .fa-x {
  display: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.header-text {
  margin-top: 20%;
  font-size: 30px;
}

.header-text h1 {
  font-size: 50px;
  margin-top: 20px;
}

.header-text h1 span {
  color: red;
}

.mobile-break {
  display: inline;
  color: inherit;
}

/* About Section */

#about {
  padding: 80px 0;
  color: #ababab;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.about-col-1 {
  flex: 1 1 300px;
  max-width: 400px;
}

.about-col-1 img {
  width: 100%;
  border-radius: 15px;
}

.about-col-2 {
  flex: 1 1 500px;
}

.about-col-2 p {
  text-align: justify;
  margin-top: 10px;
}

.about-col-2 h1 {
  text-align: left;
}

.sub-title {
  font-size: 50px;
  font-weight: 600;
  color: #fff;
}

.tab-titles {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 40px;
  gap: 15px;
}

.tab-links {
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background: rgb(216, 187, 255);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents ul li {
  list-style: none;
  margin: 10px 0;
}

.tab-contents ul li span {
  font-size: 14px;
  color: aquamarine;
  font-weight: bold;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
}

.tab-contents a {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}

/* Services Section */
#services {
  padding: 60px 0;
  background-color: #080808;
}

.sub-title {
  font-size: 50px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 20px;
}

.services-list div {
  background: #262626;
  padding: 30px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 300;
  color: #fff;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services-list div i {
  font-size: 40px;
  color: #a27bff;
  margin-bottom: 25px;
}

.services-list div h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.services-list div p {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
  text-align: justify;
}

.services-list div a {
  text-decoration: none;
  color: #a27bff;
  margin-top: 20px;
  font-size: 13px;
  display: inline-block;
  transition: color 0.3s;
}

.services-list div a:hover {
  color: #fff;
  text-decoration: underline;
}

.services-list div:hover {
  background: #a27bff;
  transform: translateY(-10px);
  color: #1e1e1e;
}

.services-list div:hover i,
.services-list div:hover h2,
.services-list div:hover p,
.services-list div:hover a {
  color: #1e1e1e;
}

/* Portfolio */

#portfolio {
  padding: 60px 0;
  background-color: #080808;
}

.sub-title {
  font-size: 50px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
  padding: 0 20px;
}

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.work img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}

.work:hover img {
  transform: scale(1.2);
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #8857c8);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 30px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s ease-in-out;
}

.layer h3 {
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

.layer p {
  color: #ddd;
  font-size: 13.5px;
  line-height: 1.6;
}

.layer a {
  margin-top: 20px;
  color: #8857c8;
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  background: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.layer a:hover {
  background: #8857c8;
  color: #fff;
}

.work:hover .layer {
  height: 100%;
}

.btn {
  display: block;
  margin: 50px auto 0;
  width: fit-content;
  border: 1px solid #8857c8;
  padding: 12px 40px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: background 0.4s;
}

.btn:hover {
  background: #8857c8;
  color: #1e1e1e;
}

.hidden {
  display: none;
}

/* Contact Form */

#contact {
  background: #080808;
  padding: 60px 0 0;
  color: #fff;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 20px;
}

.contact-left {
  flex-basis: 35%;
}

.contact-left h1 {
  text-align: left;
}

.contact-right {
  flex-basis: 60%;
}

.contact-left p {
  margin-top: 30px;
  font-size: 16px;
}

.contact-left p i {
  color: #8857c8;
  margin-right: 15px;
  font-size: 22px;
}

.plain-email {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
  font-size: 28px;
  margin-right: 15px;
  color: #ababab;
  display: inline-block;
  transition: transform 0.4s, color 0.4s;
}

.social-icons a:hover {
  color: #8857c8;
  transform: translateY(-5px);
}

.btn.btn2 {
  display: inline-block;
  background: #8857c8;
  color: #fff;
  padding: 12px 40px;
  margin-top: 30px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}

.btn.btn2:hover {
  background: #a173d2;
}

.contact-right form {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #262626;
  padding: 15px;
  margin: 15px 0;
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
}

form .btn2 {
  font-size: 16px;
  padding: 14px 50px;
  margin-top: 10px;
}

#msg {
  color: #de666e;
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.copyright {
  width: 100%;
  text-align: center;
  padding: 25px 0;
  margin-top: 40px;
  background: #262626;
  font-size: 15px;
}

.copyright i {
  color: rgb(216, 187, 255);
}

nav .fa-solid {
  display: none;
}

/* ========== Media Queries ========== */

/* Extra Small Devices (up to 480px) */
@media only screen and (max-width: 480px) {
  .sub-title {
    font-size: 32px;
  }

  .services-list {
    padding: 0 10px;
  }

  .services-list div {
    padding: 20px;
  }

  .services-list div i {
    font-size: 32px;
  }

  .services-list div h2 {
    font-size: 18px;
  }

  .services-list div p {
    font-size: 12.5px;
  }

  .services-list div a {
    font-size: 12px;
  }
}

/* Small Devices (Phones - up to 600px) */
@media only screen and (max-width: 600px) {
  /* Header */
  #header {
    background-image: url(images/phone-background.png);
  }

  .header-text {
    margin-top: 50%;
    font-size: 16px;
    margin-left: 10px;
  }

  .header-text h1 {
    font-size: 30px;
  }

  .logo {
    width: 100px;
  }

  /* Navigation (Mobile Side Menu) */
  nav .fa-solid {
    display: block;
    font-size: 25px;
  }

  nav ul {
    background: #8857c8;
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
    flex-direction: column;
    justify-content: flex-start;
  }

  nav ul li {
    display: block;
    margin: 25px;
    text-align: center;
  }

  nav ul .fa-solid {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
  }

  /* About */
  .sub-title {
    font-size: 32px;
  }

  .about-col-1,
  .about-col-2 {
    flex-basis: 100%;
  }

  .about-col-1 {
    margin-bottom: 30px;
  }

  .about-col-2 {
    font-size: 14px;
  }

  .tab-links {
    font-size: 16px;
    margin-right: 20px;
  }

  /* Portfolio */
  .work-list {
    grid-template-columns: 1fr;
    padding: 0 10px;
    gap: 25px;
  }

  .layer {
    font-size: 13px;
    padding: 0 20px;
  }

  .layer p {
    font-size: 12.5px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 30px;
  }

  /* Contact */
  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }

  .btn.btn2 {
    width: 100%;
    text-align: center;
  }

  .social-icons a {
    font-size: 24px;
  }

  form input,
  form textarea {
    font-size: 15px;
  }

  .copyright {
    font-size: 13px;
    padding: 15px 10px;
  }

  .mobile-break {
    display: block;
  }
}

/* Medium Devices (Tablets - 601px and up) */
@media only screen and (min-width: 601px) {
  /* Navigation (Desktop style) */
  nav ul {
    position: static;
    background: none;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    transition: none;
  }

  nav ul li {
    margin: 0 15px;
    text-align: center;
  }

  nav .fa-solid {
    display: none;
  }

  /* About section */
  .sub-title {
    font-size: 40px;
  }

  .services-list {
    gap: 20px;
  }

  .services-list div {
    padding: 25px;
  }

  .services-list div i {
    font-size: 36px;
  }

  .services-list div h2 {
    font-size: 20px;
  }

  .services-list div p {
    font-size: 13px;
  }

  /* Portfolio */
  .work-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Contact */
  .btn.btn2 {
    width: auto;
    text-align: center;
  }
}

/* Large Tablets / Small Laptops (up to 900px) */
@media only screen and (max-width: 900px) {
  .header-text {
    margin-top: 55%;
    font-size: 23px;
  }

  .header-text h1 {
    font-size: 35px;
  }
}

/* Laptops / Desktops (up to 992px) */
@media only screen and (max-width: 992px) {
  .sub-title {
    font-size: 40px;
  }
}
