@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary: #7d58fc;
  --primary__li: rgba(128, 90, 252, 0.7);
  --primary__li-2: rgba(128, 90, 252, 0.15);
  --primary__black: #222831;
  --primary__black-2: #393e46;
  --primary__black-li: #22283180;
  --primary__gray: #b3b3b3;
  --primary__white: #EEEEEE;
  
  --primary__font: 'Source Code Pro', monospace;
}

/* 
 *  GLOBAL VARIABLES
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  font-family: var(--primary__font);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary__black);
}

section {
  position: relative;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

.line {
  border: 1px solid var(--primary);
  position: absolute;

  z-index: -1;
}

.line.vertical {
  height: 100%;
  top: 0;
  left: 35%;
}

.line.horizontal {
  width: 100%;
  height: 0;

  left: 0;
  bottom: 0;
  top: auto;
}

/* 
 *  HEADER
 */

header {
  background-color: rgba(34, 40, 49, 0.7);

  position: sticky;
  top: 0;

  z-index: 10;
}

.header-inner {
  padding: 0 140px;
  min-height: 72px;

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

/* HEADER LOGO */

.header-logo {
  font-style: normal;
  font-weight: 500;

  color: var(--primary__white);
  cursor: pointer;
}

/* HEADER NAV BAR */

#navbar ul {
  width: 30vw;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.navbar-link {
  font-style: normal;
  font-weight: 400;
  font-size: 22px;

  color: var(--primary__white);
  transition: color 0.3s ease-out;
}

.navbar-link:hover {
  color: var(--primary);
}

/* 
 *  WELCOME SECTION
 */

#welcome-section {
  height: 680px;
  /* background: linear-gradient(315deg, var(--primary__li), rgba(136, 136, 206, 0.7)); */
  background: linear-gradient(315deg, rgba(33, 33, 65, 0.7), var(--primary__li));

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
}

#welcome-section>*:not(.line) {
  z-index: 2;
}

#welcome-section>.line {
  border-color: var(--primary__black);
  z-index: 1;
}

#welcome-section>.line.before {
  width: 2px;
  height: 60px;
  border: none;
  background: linear-gradient(to top, transparent 40%, var(--primary) 60%);
}

#welcome-section>.line.after {
  width: 2px;
  height: 60px;
  border: none;
  background: linear-gradient(transparent 40%, var(--primary) 60%);
  top: auto;
  bottom: 0;

}

#welcome-section::before {
  content: '';
  width: 100%;
  height: 60px;

  background: linear-gradient(to top, transparent 40%, var(--primary__black) 60%);

  position: absolute;
  top: 0;
  left: 0;
}

#welcome-section::after {
  content: '';
  width: 100%;
  height: 60px;

  background: linear-gradient(transparent 40%, var(--primary__black) 60%);

  position: absolute;
  bottom: 0;
  left: 0;
}

.welcome-title {
  font-style: normal;
  font-weight: 700;
  font-size: 58px;
  line-height: 74px;

  color: var(--primary__white);
  text-shadow: 5px -5px 15px var(--primary__black);
  text-align: left;


}

.welcome-caption {
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 46px;

  color: var(--primary__white);
  text-shadow: 5px -5px 15px var(--primary__black);
  text-align: left;
}

.welcome-title>span {
  font-size: 66px;
  line-height: 84px;
  color: var(--primary);
}

/* 
 *  PROJECTS SECTION
 */

.projects-section {
  padding: 0 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 65px;
}

.projects-title {
  margin-bottom: 30px;
  font-size: 32px;
  line-height: 54px;
  text-align: center;
  color: var(--primary__white);
  /* text-shadow: 5px -5px 15px var(--primary__li); */
}

.projects-title span {
  font-size: 36px;
  line-height: 46px;
  color: var(--primary);
  text-shadow: none;

}

/* PROJECTS */

.projects-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.regular-projects:first-of-type {
  margin-bottom: 30px;
}

.project-card {
  width: 400px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background-color: rgba(34, 40, 49, 0.7);
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.card-img {
  width: 100%;
  object-fit: cover;
}

.card-caption {
  padding: 30px 20px;
  width: 100%;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  color: var(--primary__white);
}

.card-btn {
  padding: 10px 15px;
  margin: 25px 20px;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 23px;

  background-color: var(--primary__li-2);
  border: 2px solid var(--primary);
  border-radius: 10px;

  color: #EEEEEE;

  cursor: pointer;

  transition: background-color 0.3s ease-out;
}

.card-btn:hover {
  background-color: var(--primary__li);
}

/* CERTIFICATE CONTAINER */

.certificate-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 70px;
}

.certificate-img {
  width: 40%;
}

.certificate-caption {
  max-inline-size: 650px;

  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;

  color: var(--primary__white);
  text-align: left;
}

.certificate-caption span {
  color: var(--primary);
}

.certificate-link {
  font-size: 24px;
  color: var(--primary);
  text-shadow: 5px -5px 15px var(--primary__li);
  transition: color 0.3s ease-out;
}

.certificate-link:hover {
  color: var(--primary__li);
}

/* 
 *  FOOTER
 */

footer {
  padding: 45px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;

  position: relative;
}

/* FOOTER TITLE */

.footer-title-container {
  margin-top: 30px;
  text-align: center;
}

.footer-title {
  margin-bottom: 10px;
  color: var(--primary__white);
  /* text-shadow: 5px -5px 15px var(--primary__li); */
}

.footer-caption {
  color: var(--primary__white);
  font-style: italic;
}

.footer-links-container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-social-link {
  padding: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background-color: var(--primary__li-2);

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 25px;
  color: var(--primary__white);

  transition: background-color 0.3s ease-out;

}

.footer-social-link:hover {
  background-color: var(--primary__li);
}

.contact-links {
  display: flex;
  gap: 15px;
}

.footer-contact-link {
  padding: 8px 15px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background-color: var(--primary__li-2);


  color: var(--primary__white);
  font-size: 15px;

  transition: background-color 0.3s ease-out;

}

.footer-contact-link:hover {
  background-color: var(--primary__li);
}

#contact > .horizontal {
  top: 45px;
  bottom: auto;
}

/* FOOTER COPYRIGHT */

.footer-copyright-container {
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-around;
  align-items: center;

  position: relative;

  color: var(--primary__gray);

}

@media (max-width: 1300px) {
  .certificate-container {
    gap: 50px;
  }
  .certificate-img {
    width: 50%;
  }
}

@media (max-width: 1220px) {
  .certificate-caption {
    font-size: 18px;
    line-height: 26px;
  }
  .certificate-link {
    font-size: 22px;
  }
}

@media (max-width: 1150px) {
  #welcome-section {
    gap: 50px;
  }

  .welcome-title {
    font-size: 54px;
  }

  .welcome-title>span {
    font-size: 62px;
  }
}

@media (max-width: 1100px) {
  .project-card {
    width: 300px;
  }

  .card-caption {
    padding: 15px 10px;
    font-size: 16px;
  }

  .card-btn {
    margin: 20px 15px;
    font-size: 16px;
  }

  .certificate-container {
    gap: 30px;
  }

  .footer-copyright-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 1040px) {
  #welcome-section {
    height:  620px;
  }

  #navbar {
    margin: 10px 0;
  }

  #navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

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

  .welcome-title>span {
    font-size: 58px;
  }

  .welcome-caption {
    font-size: 28px;
  }
}

@media (max-width: 980px) {
  #welcome-section {
    padding: 0 20px;
    gap: 30px;
  }

  .welcome-title {
    font-size: 46px;
    line-height: 62px;
  }

  .welcome-title>span {
    font-size: 54px;
    line-height: 72px;
  }

  .welcome-caption {
    font-size: 26px;
    line-height: 42px;
  }

  .certificate-container {
    flex-direction: column;
    align-items: center;
  }

  .certificate-img {
    width: 85%;
  }
}

@media (max-width: 920px) {
  .welcome-title {
    font-size: 38px;
    line-height: 48px;
  }

  .welcome-title>span {
    font-size: 46px;
    line-height: 58px;
  }
}

@media (max-width: 855px) {
  #welcome-section {
    flex-direction: column;
  }

  .welcome-title {
    font-size: 42px;
  }

  .welcome-title>span {
    font-size: 50px;
  }

  .certificate-container {
     padding: 0 20px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    padding: 0;
  }

  .header-logo {
    margin-top: 15px;
  }

  #welcome-section {
    height: 580px;
  }

  .certificate-img {
    width: 90%;
  }
}

@media (max-width: 460px) {
  .welcome-title {
    font-size: 38px;
  }

  .welcome-title>span {
    font-size: 46px;
  }

  .welcome-caption {
    font-size: 24px;
    line-height: 38px;
  }

  .projects-title {
    font-size: 28px;
    line-height: 38px;
  }

  .projects-title span {
    font-size: 32px;
  }

  .certificate-container {
    padding: 0;
  }

  .certificate-img {
    width: 100%;
  }

  .footer-title {
    font-size: 28px;
    line-height: 38px;
  }
}

@media (max-width: 400px) {
  #welcome-section {
    padding: 0 30px;
  }

  .welcome-title {
    font-size: 34px;
    line-height: 44px;
  }

  .welcome-title>span {
    font-size: 42px;
    line-height: 54px;
  }

  .welcome-caption {
    font-size: 22px;
  }

  .projects-section {
    gap: 35px;
  }

  .projects-container {
    gap: 20px;
  }

  .project-card {
    width: 230px;
  }
  
  .card-btn {
    margin: 10px;
    padding: 5px 10px;
    font-size: 14px;
  }

  .certificate-caption {
    font-size: 16px;
    line-height: 26px;
  }

  .certificate-link {
    font-size: 20px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-copyright-container {
    margin-top: 15px;
  }
}

@media (max-width: 360px) {
  .certificate-container {
    gap: 15px;
  }

  .certificate-caption {
    font-size: 14px;
    line-height: 24px;
  }

  .certificate-link {
    font-size: 18px;
  }
}

@media (max-width: 310px) {
  .welcome-title {
    font-size: 28px;
    line-height: 38px;
  }

  .welcome-title>span {
    font-size: 36px;
    line-height: 48px;
  }

  .welcome-caption {
    font-size: 20px;
    line-height: 34px;
  }

  .projects-title {
    font-size: 24px;
    line-height: 34px;
  }

  .projects-title span {
    font-size: 28px;
  }

  .footer-title {
    font-size: 24px;
    line-height: 34px;
  }
}

@media (max-width: 270px) {
  .project-card {
    width: 180px;
  }
  .footer-copyright-container {
    margin-top: 35px;
  }
}