@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  /* Dark Mode Only */
  --primary-color: #2dd4bf;
  --secondary-color: #fb923c;
  --accent-color: #60a5fa;
  --text-primary-color: #e2e8f0;
  --text-secondary-color: #94a3b8;
  --bg-primary-color: #0b1214;
  --bg-secondary-color: #0f172a;
  --surface-color: #0b1620;
  --border-color: #1f2937;
  --other-color: #1f2937;
  --navbar-bg: rgba(15, 23, 42, 0.7);
  --rotate-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.35);

  /* Icons */
  --color-1: #2dd4bf;
  --color-2: #fb923c;
  --color-3: #60a5fa;
  --color-4: #22c55e;
}

html {
  scroll-behavior: smooth;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main  */
body {
  background: var(--bg-primary-color);
  color: var(--text-primary-color);
  font-family: "Instrument Sans", sans-serif;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.12), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(251, 146, 60, 0.12), transparent 50%),
    linear-gradient(120deg, rgba(8, 15, 20, 0.95), rgba(15, 23, 42, 0.95));
}

.section {
  padding: 4rem 0;
}

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

.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@font-face {
  font-family: "Proxima";
  font-style: normal;
  font-weight: normal;
  src: local("Proxima"),
    url("/font/ProximaNova-Regular.otf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Jetbrains";
  font-style: normal;
  font-weight: normal;
  src: local("Jetbrains"),
    url("/font/JetBrainsMono-Regular.woff2") format("truetype");
}

img {
  width: 100%;
  height: 100%;
}

p {
  margin: 10px 0;
  font-weight: 300;
}

ul {
  list-style: none;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 20px;
  position: fixed;
  top: 0;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px var(--shadow-color);
  backdrop-filter: blur(16px);
  z-index: 200;
  height: 70px;
}

.navbar ul {
  display: flex;
}

.navbar ul li a {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  margin: 0 18px;
  transition: all 0.3s ease-in-out;
  padding: 16px;
  border-radius: 999px;
}

.navbar ul li a .nav-icon {
  margin-right: 0.4rem;
}

.navbar ul li a:hover {
  color: var(--primary-color);
  background: rgba(15, 118, 110, 0.08);
}

.navbar .logo img {
  display: block;
  width: 40px;
}

.navbar .logo {
  transition: all 0.3s ease-in-out;
}

.navbar .logo:hover {
  opacity: 1;
}

/* Hamburger menu */
.hamburger {
  display: none;
}

.nav-menu {
  display: flex;
}

.bar {
  display: block;
  width: 27px;
  height: 3px;
  margin: 5px auto;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-primary-color);
}

/* Hero section */
#hero {
  min-height: 100vh;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
}

/* Hero circle primary*/
#hero::after {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.35), transparent 70%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: -2;
  transition: 0.5s;
  animation: animation 6s infinite alternate-reverse forwards ease-in-out;
}

#hero::before {
  content: "";
  position: absolute;
  bottom: -180px;
  right: -140px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.18), transparent 70%);
  border-radius: 50%;
  z-index: -2;
}

#hero .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 40px;
  margin-bottom: 2rem;
  height: 100%;
  position: relative;
  margin-top: 5rem;
  gap: 3rem;
}

.content-text {
  max-width: 560px;
}

.content h1 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary-color);
}

.content h2 {
  max-width: 800px;
  font-size: 2.9rem;
}

.content p {
  margin: 0.9rem 0 2rem;
  font-weight: 500;
  color: var(--text-secondary-color);
}

.content .btn {
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.85rem;
}

.content .btn span {
  margin-left: 0.1rem;
}

/* Hero image */
.content .content-image img {
  width: 320px;
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 18px;
  background: var(--surface-color);
  box-shadow: 0 20px 60px var(--shadow-color);
  transform: translateY(-20px);
}

.overlay-icons {
  position: relative;
  z-index: 1;
}

/* Hero html icon*/
.content .content-image::before {
  content: "";
  position: absolute;
  top: 50px;
  left: -20px;
  background-image: url(/img/home/html5.svg);
  background-repeat: no-repeat;
  width: 60px;
  height: 60px;
  z-index: 1;
}

/* Hero Js icon*/
.content .content-image::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: 32%;
  background-image: url(/img/home/javascript.svg);
  background-size: 60px;
  background-repeat: no-repeat;
  width: 90px;
  height: 90px;
}

/* Hero css icon*/
.content .content-image .overlay-icons::after {
  content: "";
  position: absolute;
  bottom: -105px;
  right: -30px;
  width: 60px;
  height: 60px;
  background-image: url(/img/home/css3.svg);
  background-repeat: no-repeat;
}

/* About */
#about {
  min-height: 70vh;
  background: var(--bg-secondary-color);
  padding-left: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

#about a {
  text-decoration: underline;
}

.bio {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  height: 100%;
}

.bio p {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  max-width: 1000px;
  color: var(--text-secondary-color);
}

.bio ul {
  list-style: disc;
  font-size: 1em;
  margin-top: 1.5rem;
  padding-left: 2rem;
}

/* Skills Section */
#skills {
  margin-top: 0;
}

.skills {
  display: grid;
  grid-template-columns: 2fr 3fr;
  grid-gap: 2rem;
}

.skills .box-header {
  align-self: center;
  padding: 1rem 1.5rem;
}

.skills .box-header .head-text {
  text-align: left;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 1rem;
}

.skills .box-header h3 {
  font-size: 1.9rem;
}

.skills .box-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1.25rem;
  justify-self: center;
}

.box-container span {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.box-container h3 {
  font-size: 1.1rem;
}

/* Language Icons */
.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.icons .icon {
  font-size: 1.5rem;
}

/* Projects */
#projects {
  padding: 1rem 2rem 4rem;
}

#projects .readmore {
  text-align: center;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 1.5rem;
  margin-bottom: 3rem;
}

#project-full {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 1rem;
  margin-bottom: 7rem;
}

.project-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin: 2rem 0;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px var(--shadow-color);
}

.project-content .project-image {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.project-content .project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.08), rgba(15, 118, 110, 0.18));
  opacity: 0.7;
  transition: opacity 0.6s ease;
}

.project-content .project-image:hover::after {
  opacity: 0.3;
}

.project-content .project-image img {
  transform-origin: 0 0;
  transition: transform 1.2s ease, filter 1.2s ease;
  filter: saturate(85%);
}

.project-content .project-image:hover img {
  filter: brightness(100%);
  transform: scale(1.08);
}

/* Project CTA */
.project-content .btn {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
}

.project-content .project-image:hover .btn {
  opacity: 1;
}

.project-content .project-image img {
  width: 100%;
  height: 100%;
}

.project-content .btn {
  opacity: 1;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 0.6rem;
}

.card-content a {
  text-decoration: underline;
  transition: 0.2s ease-in-out;
}

.card-content a:hover {
  color: var(--primary-color);
}

.card-content h2 {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.card-content p {
  color: var(--text-secondary-color);
}

.card-content .project-info .stack {
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-content .project-links a {
  margin-right: 0.4rem;
}

.card-content .project-links a {
  color: var(--accent-color);
  font-weight: 600;
}

.project-container .icon-header {
  align-self: flex-end;
  margin-bottom: 1rem;
}

.project-container .icon-header a {
  color: var(--text-primary-color);
  margin-left: 0.7rem;
  font-size: 1.1rem;
}

.project-container .icon-header a:hover {
  color: var(--primary-color);
}

.project-container header {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-container header p {
  color: var(--text-secondary-color);
}

.project-container ul {
  display: flex;
}

.project-container li {
  margin-right: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-color);
}

/* Contact */
.contact {
  margin: 2rem 0;
}

.contact .container {
  max-width: 1100px;
}

.contact .form-header {
  text-align: center;
  margin: 1rem 0;
}

.form-header h2 {
  font-size: 3.5rem;
}

.form-header .head-text {
  font-size: 1.2rem;
}

.form-header p {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.5rem;
  padding-bottom: 2rem;
}

/* Form */
.form-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
}

.form-image {
  background: url(/img/home/Pattern.svg) no-repeat center left/cover;
  object-fit: cover;
}

.form-page {
  align-self: center;
  padding: 1rem 0;
}

.form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  grid-column: 1 span 3;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: none;
}

.form-group input,
.form-group textarea,
.form-group button {
  font-family: "Proxima", sans-serif;
  display: block;
  color: var(--text-primary-color);
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--other-color);
  outline: none;
  transition: border 0.3s ease-in-out;
  font-size: 0.9rem;
}

.group-bg input,
.group-bg textarea {
  background-color: var(--other--color);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom: 1px solid var(--primary-color);
}

.form-group .btn {
  font-weight: 600;
  transition: all 0.4s ease-in-out;
}

/* Thank you page */
.thankyou {
  height: 100vh;
}

.thankyou-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-primary-color);
  height: 100%;
  overflow: hidden;
  padding: 1rem;
  text-align: center;
}

.thankyou-content h1::before {
  content: "";
  position: absolute;
  top: -400px;
  left: -700px;
  width: 700px;
  height: 700px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: -40000;
  animation: animate infinite 50s forwards alternate ease-in-out;
}

.thankyou-content h1::after {
  content: "";
  position: absolute;
  bottom: -500px;
  right: -700px;
  width: 700px;
  height: 700px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: -40000;
  animation: animate infinite 50s forwards alternate-reverse ease-in-out;
}

@keyframes animate {
  10% {
    transform: translateX(100px);
  }
  15% {
    transform: translateY(-100px);
  }
  20% {
    transform: translateX(200px);
  }
  25% {
    transform: translateY(-200px);
  }
  30% {
    transform: translateX(300px);
  }
  35% {
    transform: translateY(-300px);
  }
  40% {
    transform: translateX(110px);
  }
  45% {
    transform: translateY(-110px);
  }
  50% {
    transform: translateX(130px);
  }
  55% {
    transform: translateY(-130px);
  }
  60% {
    transform: translateX(150px);
  }
  65% {
    transform: translateY(-150px);
  }
  70% {
    transform: translateX(170px);
  }
  75% {
    transform: translateY(-170px);
  }
  80% {
    transform: translateX(190px);
  }
  85% {
    transform: translateY(-190px);
  }
  90% {
    transform: translateX(210px);
  }
  95% {
    transform: translateY(-210px);
  }
  100% {
    transform: translateX(100px);
  }
  105% {
    transform: translateY(-100px);
  }
}

.thankyou-content h1 {
  line-height: 1.1;
  font-size: 4rem;
  position: relative;
}

.thankyou-content p {
  font-size: 1.3rem;
  padding: 0 1rem;
}

/* External projects page */
#hero-project .navbar {
  background: var(--navbar-bg);
  border-bottom: 0;
  position: sticky;
}

#hero-project {
  height: 50vh;
  background: url(../img/projects/projects.jpg) no-repeat center center/cover;
  box-shadow: inset 10px 100px 1000px rgba(0, 0, 0, 0.9);
}

#hero-project .content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  color: #fff;
  padding-left: 2rem;
}

#hero-project .content-text {
  margin-bottom: 2rem;
}

#hero-project .content-text .underline {
  background: #fff;
}

/* Footer */
#footer {
  background-color: var(--bg-secondary-color);
  border-top: 1px solid var(--border-color);
}

#footer .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

#footer .footer-container .btn {
  padding: 0.3rem 0.5rem;
  justify-self: flex-end;
}

#footer .footer-container .icons a {
  font-size: 1rem;
  margin: 0 5px;
  padding: 10px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}

#footer .footer-container p {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary-color);
  transform: translateX(-37%);
}

#footer .btn-scroll-top {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.4rem 0.6rem;
  transition: all 0.3s ease-in-out;
  border: 1px solid var(--bg-secondary-color);
}

#footer .btn-scroll-top:hover {
  background-color: #fff;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

#footer .btn-scroll-top span {
  transition: all 0.3s cubic-bezier(0, 0, 1, 0);
}
#footer .btn-scroll-top:hover span {
  transform: translateY(-5px);
}

.social div {
  margin-top: 0.5rem;
}

.social div img {
  width: 135px;
  height: 100%;
}

.social-icon {
  margin-left: 0;
}

/* Circle Animation */
@keyframes animation {
  0% {
    transform: translate(0);
  }

  50% {
    transform: translate(40px);
  }

  100% {
    transform: translate(0);
  }
}

/* SECTION Experience */
.CV-page {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 2em;
  color: var(--text-primary-color);
  font-size: 1em;
  /* font-family: 'Lato', sans-serif; */
}

@media all and (max-width: 500px) {
  .CV-page {
    padding: 0 1em;
  }
}
/* if IE<=7 */

.CV-page\ {
  width: 1100px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}

.CV-secondaryHeading {
  position: relative;
  margin: 2em 0 0;
  text-transform: uppercase;
}
/* Grid
****************************************************/

.CV-grid {
  display: table;
}

.CV-grid-column {
  display: table-cell;
}

.CV-timeline {
  position: relative;
  margin: 0 0 0 0.5em;
  padding-left: 1.5em;
  border-left: solid 1px var(--border-color);
}

.CV-timeline:first-of-type {
  margin-top: 1em;
}

.CV-timeline:last-of-type {
  border-left-color: transparent;
}

.CV-timeline:before {
  content: "";
  position: absolute;
  top: 0;
  left: -0.5em;
  display: block;
  width: 1em;
  height: 1em;
  border: solid 1px var(--border-color);
  background-color: var(--surface-color);
  border-radius: 50%;
}

.CV-timeline-heading {
  margin: 0;
  padding-bottom: 0.5em;
  line-height: 1em;
  font-weight: normal;
  -webkit-transform: translateY(-0.1em);
  -ms-transform: translateY(-0.1em);
  transform: translateY(-0.1em);
}

.CV-timeline-heading-title {
  line-height: 1;
  font-weight: bold;
  color: var(--primary-color);
  /* font-style: italic; */
  /* text-transform: uppercase; */
}

.CV-timeline-heading-location {
  display: block;
  font-size: 0.9em;
  margin-top: 10px;
}

.CV-timeline-heading-duration {
  display: block;
  font-size: 0.8em;
  color: var(--text-secondary-color);
  margin-top: 5px;
}

.CV-timeline-details {
  display: block;
  margin: 0;
  padding-bottom: 2em;
  margin-left: -17px;
  /* padding: 0 0 2em 1em; */
  /* list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAGElEQVQIW2NkYGD4D8TIgJERTQDMpVAQAGaUAQbko3DsAAAAAElFTkSuQmCC"); */
}

.CV-timeline-details-item {
  margin-bottom: 40px;
}


/* Responsive */
@media (max-width: 890px) {
  /* Project */
  .project-content {
    grid-template-columns: 1fr;
  }

  .card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0.5rem 0;
  }

  /* Footer */
  #footer .footer-container {
    flex-direction: column;
    justify-content: center;
  }

  #footer .footer-container .btn-scroll-top {
    display: none;
  }

  #footer .footer-container p {
    transform: translateX(0);
  }

  #project-full {
    grid-template-columns: repeat(1, 1fr);
  }

  .skills {
    grid-template-columns: 1fr;
    grid-gap: 0;
  }

  .project-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar ul li a {
    margin: 0;
  }
}

/* Navbar */
@media (max-width: 768px) and (max-width: 701px) {

  .navbar {
    justify-content: space-between;
  }

  .logo {
    order: 1;
  }

  #menu {
    order: 3;
  }

  .theme-switch-wrapper {
    order: 2;
  }

  .navbar ul li a:hover {
    background-color: var(--primary-color);
    color: #fff;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 0;
    flex-direction: column;
    width: 70%;
    height: 100%;
    text-align: right;
    transition: 0.3s;
    background-color: var(--bg-secondary-color);
  }

  /* Add spacing between hamburer and navigation menu */
  .nav-menu li:first-child {
    margin-top: 4rem;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-items {
    width: 100%;
    border-bottom: 1px solid var(--other-color);
  }

  .nav-link {
    display: inline-block;
    width: 100%;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body {
    overflow-x: hidden;
  }

  #hero {
    margin-top: 2rem;
  }

  #hero .content {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  .content-text {
    margin-bottom: 3rem;
  }

  .content h2 {
    font-size: 2.4rem;
  }

  .content p {
    max-width: 300px;
  }

  /* Hero circle */
  #hero::after {
    top: 5%;
    left: 70%;
  }

  .content .content-image {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .social-icon {
    margin-left: -25px;
  }
}

@media (max-width: 700px) {
  #hero {
    min-height: 100vh;
    height: auto;
  }

  #hero {
    padding-top: 3.2rem;
  }

  #hero .content {
    margin-top: 2.6rem;
  }

  #hero .content {
    justify-content: space-around;
  }

  .content .content-image img {
    width: 220px;
    padding: 14px;
  }

  .content p {
    margin: 1rem 0;
  }

  .skills .box-header {
    transform: translateY(-50px);
    padding-bottom: 0;
  }

  .skills .box-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .form-image {
    height: 200px;
  }

  #skills {
    padding: 1rem;
  }
}

@media (min-width: 701px) {
  #hero {
    padding-top: 5.2rem;
  }

  #hero .content {
    margin-top: 5.8rem;
  }
}

@media (max-width: 500px) {
  .skills .box-container {
    grid-template-columns: 1fr;
  }

  .project-container {
    grid-template-columns: 1fr;
  }

  .social.icons {
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: flex-start;
  }
}

@media (max-width: 400px) {
  #hero {
    height: 100%;
  }

  .content h1 {
    font-size: 0.8rem;
  }

  .content h2 {
    font-size: 1.3rem;
  }
}
