/* IMPORTS */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* COLORS */

:root {
  --color-primary: #A44AFF;
  --color-secondary: #FF6F4A;
  --color-grey: #0D0D0D;
  --color-black: black;
  --color-white: #F5F5F5;
  --color-lightgrey: #8d8d8d;
}

/* GLOBAL ELEMENTS */

* {
  font-family: 'Poppins', sans-serif;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-black);
  background-color: var(--color-black);
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

/* BUTTONS */

button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-block;
  width: auto;
  margin: 10px 0px;
  padding: 12px 40px;
  border-radius: 30px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  max-width: fit-content;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
  background-size: 200% 100%;
  background-position: 0% 50%;
  transition: background-position 0.2s ease-in-out, opacity 0.25s;
}

.btn:hover {
  background-position: 100% 50%;
}

/* FONT STYLES */

p {
  font-size: 16px;
}

h1 {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 58px;
  line-height: 4.5rem;
  margin: 0px 0px;
}

h2 {
  font-size: 42px;
  color: var(--color-primary);
  margin: 0px 0px;
}

h3 {
  font-size: 24px;
  margin: 4px 0px;
}

h4 {
  font-size: 20px;
  margin: 10px 0px;
}

h5 {
  font-size: 18px;
  font-weight: normal;
  margin: 20px 0px;
}

/* HEADER / NAVIGATION */

header {
  position: sticky;
  top: 0px;
  z-index: 1000;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  background-color: var(--color-grey);
}

.menu-content {
  display: flex;
  justify-content: space-between;
  height: 70px;
}

.topnav {
  display: flex;
  height: 70px;
  align-items: center;
}

.topnav a {
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  color: var(--color-secondary);
  ;
}

.topnav a.active {
  color: var(--color-secondary);
}

.hamburger-col {
  display: none;
}

.hamburger {
  all: unset;
  display: flex;
}

.logo-col a {
  height: 100%;
  display: flex;
  align-items: center;
}

.fullmenu {
  min-height: 100vh !important;
}

/* === HAMBURGER MENU ANIMATED === */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1005;
  padding: 0;
  overflow: visible;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  margin: 2px 0;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
}

.hamburger.change span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.change span:nth-child(2) {
  opacity: 0;
}

.hamburger.change span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === SLIDE DOWN MENU ANIMATION === */
.topnav {
  transition: max-height 0.4s ease-out;
  overflow: hidden;
  max-height: 70px;
}

.topnav.responsive {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 500px;
}

header,
.menu-content,
.hamburger-col {
  overflow: visible !important;
}

.hamburger {
  z-index: 1005;
}

.topnav.responsive {
  z-index: 1001;
}

/* LAYOUT AND SECTIONS */

.grid-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.column {
  display: flex;
  flex: 1;
  min-width: 300px;
}

.top {
  justify-content: flex-start !important;
}

.two {
  flex: 2;
  flex-direction: column;
  justify-content: center;
}

.one {
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.container-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  height: 100vh;
}

/* Apply a top offset for all sections */
[id^="section-"] {
  scroll-margin-top: 100px;
}

.section-intro {
  height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.section-intro .container-flex {
  height: 100%;
  min-height: 100%;
  align-items: center;
}

.section-skills {
  color: var(--color-white);
}

.short {
  height: auto;
  min-height: 500 !important;
  padding: 60px 0px;
}

.nopadding {
  height: auto;
  padding: 0px;
}

.small {
  padding: 0px 200px;
}

.square-image {
  max-width: 100%;
  height: fit-content;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 10px 0px !important;
}

.section-projects {
  background-color: var(--color-white);
  display: flex;
  padding: 40px 0px;
}

.section-about {
  background-color: var(--color-white);
  display: flex;
}

.section-projectcontent {
  background-color: var(--color-white);
  display: flex;
  padding-top: 30px;
}

.projects-row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  width: 430px;
  background: var(--color-black);
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  -webkit-mask-image: radial-gradient(circle, white 100%, transparent 100%);
  mask-image: radial-gradient(circle, white 100%, transparent 100%);
  padding-bottom: 20px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 320px;
  width: 100%;
}

.project-image img {
  transition: transform 0.4s ease;
}

.project-image img:hover {
  transform: scale(1.2);
}

.project-card h4 {
  padding: 0px 20px;
}

.project {
  margin-top: 0px;
}

/* FOOTER */

.footer {
  display: flex;
  flex-direction: column;
  height: 300px;
  justify-content: center;
  background-color: var(--color-black);
  color: #fff;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-secondary);
  font-size: 20px;
}

/* Reveal animation  */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out var(--delay, 0s),
    transform 0.8s ease-out var(--delay, 0s);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typing animation */
.typing {
  visibility: hidden;
  white-space: pre;
  display: inline-block;
}

.typing::after {
  content: ' ';
  display: inline-block;
  animation: none;
}

@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}




/* Star animation */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100&display=swap");
.star {
  transform-style: preserve-3d;
  width: 1px;
  height: 1px;
  position: absolute;
  color: red;
}
 
.star:before {
  position: absolute;
  content: "✦";
  color: inherit;
  inset: 0;
  text-shadow: 0 0 0.8em #fff5;
}
 
.cd__main {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: #F9F6EF;
  display: grid;
  place-content: center;
  background-image: radial-gradient(circle at 50% 50%, #2f3040, #1f2020) !important;
}







/* TABLET SIZE */

@media screen and (max-width: 1000px) {

  .small {
    padding: 0px 30px;
  }

  .section-intro {
    height: auto;
    padding-bottom: 20px;
  }

}






/* MOBILE SIZE */

@media screen and (max-width: 600px) {

  h1 {
    font-size: 42px;
    line-height: 3rem;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 18px;
  }

  h5 {
    font-size: 16px;
    font-weight: normal;
    margin: 10px 0px;
  }

  .topnav {
    flex-direction: column;
    height: unset;
  }

  .topnav a {
    display: none;
  }

  .hamburger-col {
    display: flex;
    align-items: center;
  }

  button.hamburger.icon {
    font-size: 30px;
  }

  header .topnav {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-black);
  }

  li a {
    text-decoration: none;
    color: var(--color-white);
  }

  .topnav.topnav.responsive {
    padding-top: 50px;
  }

  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
    font-size: 20px;
  }

  .topnav.topnav.responsive li {
    margin: 20px 0px 20px 0px;
  }

  .container-intro {
    gap: 0px;
  }

  .section-intro {
    padding: 20px 0px;
    height: auto;
  }

  .column {
    padding: 0px;
  }

  .container-flex {
    margin: 20px 0px;
    justify-content: center;
    height: auto;
    gap: 10px;
  }

  .container-flex img {
    margin-bottom: 60px;
  }

  .logo {
    width: 240px;
  }

  .projects-row {
    justify-content: flex-start;
    gap: 0px;
  }

  .project-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .project-image {
    height: 250px;
  }

  .small {
    padding: 0px 20px;
  }

  .short {
    padding: 10px 0px;
  }

  .top {
    justify-content: center;
  }

  .hamburger {
    width: auto;
    height: 60px;
  }

  .hamburger span {
    width: 22px;
  }

  header {
    overflow: visible;
  }

  .square-image {
    margin: 10px 0px !important;
  }

  .section-projectcontent {
    padding-top: 10px;
  }

}