@import "./normalize.css";

*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  --color-background: #000; /* Darker for a more refined look */
  --primary-color: #0056b3; /* Muted blue for professionalism */
  --accent-color: #ff724c; /* Warm accent color for highlights */
  --text-color: #333333; /* Softer text color */
  --text-muted: #666666; /* Muted text for less prominent elements */
  --color-light__background: #3a3a3c; /* Slightly lighter for contrast */
}

/* Typography */
::selection {
  background: var(--primary-color);
  color: white;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  color: var(--text-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  color: #0056b3;
  margin: 0;
}

h1 {
  font-size: 7.2rem;
}

h2 {
  font-size: 3.2rem;
  line-height: 1.2;
}

h3,
h4 {
  font-size: 2.8rem;
}

/* Links */
a {
  color: var(--text-color);
  text-decoration: none;
}

/* Buttons */
.btn {
  padding: 1.5rem 3rem;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  border: 0;
  transition: 0.3s ease;
  display: inline-block;
}

.btn--white {
  background: #ffffff;
  color: var(--color-background);
  border: 2px solid #ffffff;
}

.btn--white:hover {
  background: var(--color-background);
  color: #ffffff;
}

.btn--transparent {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-muted);
}

.block--dark .btn--transparent {
  color: #fff;
}
.block--dark .btn--transparent:hover {
  background: #fff;
  color: var(--color-background);
}

.btn--transparent:hover {
  background: var(--color-background);
  color: #fff;
}

.btn--grey {
  background: var(--color-light__background);
  color: var(--text-color);
}

.btn--grey:hover {
  background: var(--text-color);
  color: var(--color-background);
}

/* Lists */
.list {
  list-style: none;
  padding-left: 0;
}

.list__item {
  margin-left: 0;
  transition: all 0.5s;
  margin-bottom: 0.3rem;
  padding: 1rem;
}
/* Grids */
.grid {
  display: grid;
  gap: 1.5rem; /* Increased gap for cleaner spacing */
}

@media screen and (min-width: 580px) {
  .grid--1x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1000px) {
  .grid--1x4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid--1x2--big {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* .container */
.container {
  max-width: 1140px;
  padding-right: 0 1.5rem;
  margin: 0 auto;
}

/* Intro */
.intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 5rem;
}

.intro__subtitle {
  font-weight: 600;
  display: block;
  color: var(--text-muted); /* Muted color for less emphasis */
}

.intro__heading {
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.intro__content {
  color: var(--text-color);
  margin: 0;
}

/* Block */
.block {
  --padding-vertical: 6rem;
  padding: var(--padding-vertical) 2rem;
}

.block--dark {
  background: var(--color-background);
  color: #e0e0e0;
}

.block--dark a:not(.btn):not(.fa-brands),
.block--dark .intro__content {
  color: #e0e0e0;
}

.block--dark h1,
.block--dark h2,
.block--dark h3,
.block--dark h4 {
  color: #fff;
}

.block--grey {
  background: var(--color-light__background);
  color: #e0e0e0;
}

.block--pattern {
  background-image: radial-gradient(
    rgba(143, 224, 133, 0.233) 2px,
    transparent 0
  );
  background-size: 30px 30px;
  background-position: -5px -5px;
}
.block--grey h1,
.block--grey h2,
.block--grey h3,
.block--grey h4 {
  color: #fff;
}
.block--grey a:not(.btn),
.block--grey .intro__content {
  color: #e0e0e0;
}

.block--grey .intro__subtitle {
  color: #dedede;
}
/* Icons */
.icon-container {
  border: 1px solid rgba(255, 255, 255, 0.2); /* Softer border */
  padding: 6rem 5rem;
  border-radius: 5px;
  text-align: center;
  color: var(--text-color);
  transition: 0.3s ease-out;
}

.icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.icon__content {
  margin: 0;
  font-weight: 600;
  font-size: 2rem;
}

.icon-container:hover {
  background: rgba(255, 255, 255, 0.1); /* Lighter hover effect */
  border-color: rgba(255, 255, 255, 0.1);
}

/* Skills */
.skill {
  color: var(--text-color);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.skill__line--bg {
  background: var(--color-light__background);
}

.skill__line--content {
  width: 0%;
  background: var(--accent-color);
  border-radius: 5px;
  height: 5px;
  transition: width 2s ease;
}

.skill__details {
  margin-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.skill__level {
  transition: all 2s ease;
}
/* logo */
.logo {
  width: 3rem;
  padding-top: 4px;
}

.logo-container::after {
  content: "avin";
  font-size: 2.2rem;
  color: #f7600e;
  display: inline-block;
  transform: translate(-0.6rem, -0.8rem);
}

/* Collapsibles */
.collapsible__content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  opacity: 0;
}

.collapsible--expanded .collapsible__content {
  max-height: 100vh;
  opacity: 1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.sticky {
  position: sticky;
  top: 0;
}
.navbar .fa-solid {
  font-size: 2.2rem;
}

.nav__list {
  width: 100%;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.navbar .list__item {
  position: relative;
  margin-top: 1rem;
}

ul {
  margin-block-end: 0;
  margin-block-start: 0;
}

.navbar .list__item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.5s ease;
}

.navbar .list__item:hover::after {
  width: 100%;
}
.navbar .list__item:hover {
  border-bottom: 1px solid var(--accent-color);
}

.navbar .list__item.active::after {
  width: 100%;
}

.nav__toggler {
  opacity: 0.5;
  transition: all 0.15s;
  cursor: pointer;
}

.navbar.collapsible--expanded .nav__toggler {
  opacity: 1;
  box-shadow: 0 0 3px -1px #fff;
  border-radius: 5px;
}

@media screen and (min-width: 768px) {
  .nav__list {
    width: auto;
    display: flex;
    font-size: 1.6rem;
    max-height: 100vh;
    opacity: 1;
  }

  .navbar .list__item {
    padding: 1rem;
  }

  .nav__toggler {
    display: none;
  }
}

/* Banner */
.banner {
  padding: 10rem 2rem;
  background-image: url("../images/banner.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  background-attachment: fixed;
  width: 100%;
  position: relative;
}
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.banner * {
  position: relative;
  z-index: 2;
}

@media (max-width: 700px) {
  .banner {
    background-attachment: scroll;
    background-position: right center;
    background-size: cover;
  }

  .banner::before {
    background-color: rgba(0, 0, 0, 0.7);
  }
}
.banner__header h3 {
  color: #b0b3b8;
  margin: 0;
}
.banner__header .banner__title {
  margin: 0 0 1rem;
  line-height: 0.8;
}

.banner__buttons {
  margin-top: 3rem;
}

.banner__buttons .btn:last-of-type {
  margin-left: 1rem;
}

.mediaIcons {
  margin-top: 2.4rem;
}

.mediaIcons .fa-brands {
  margin-left: 1rem;
  font-size: 2rem;
  padding: 0.8rem;
  border-radius: 50%;
  transition: all 0.5s;
}

.fa-github {
  color: #fff;
  border: 1px solid #fff;
}
.fa-facebook {
  color: #1877f2;
  border: 1px solid #1877f2;
}

.fa-linkedin-in {
  color: #fff;
  border: 1px solid #0a66c2;
  transition: all 0.5s;
}
.fa-brands.fa-linkedin-in:hover {
  color: #0a66c2;
}
.fa-instagram {
  color: #f56040;
  border: 1px solid #f56040;
}

.fa-github:hover {
  border: 1px solid red;
}
.fa-brands:hover {
  color: #fff;
}

#domain {
  display: inline-block;
}

.typed-cursor {
  margin-left: 2px;
  font-size: 2.8rem;
}

@media screen and (max-width: 450px) {
  .banner__header h3 {
    font-size: 1.8rem;
  }
  .typed-cursor {
    font-size: 1.8rem;
  }
  .banner__title {
    font-size: 4rem;
  }

  .btn {
    font-size: 1.4rem;
    padding: 2rem;
  }
}

/* About Me */
.profile {
  width: 100%;
  object-fit: cover;
  border-radius: 25px;
  max-width: 340px;
}

.text-mute {
  color: var(--text-muted);
}

.content__domain {
  font-size: 1.8rem;
}

@media screen and (min-width: 980px) {
  .aboutMe .grid--1x2--big {
    grid-template-columns: auto 1fr;
    gap: 8rem;
  }
}

.fa-node {
  color: #6cc24a;
}
.fa-database {
  color: #f29111;
}

.fa-laptop-code {
  color: #00d8ff;
}

/* skills */
.skill-grid {
  margin: 0;
}

.mySkills .grid {
  gap: 0;
}

@media screen and (min-width: 1000px) {
  .mySkills .grid--1x2--big {
    gap: 8rem;
  }
}

/* My Works */

.works .grid {
  margin-bottom: 3rem;
}
.works__image {
  width: 100%;
}

@media screen and (min-width: 1000px) {
  .works .grid--1x2--big {
    grid-template-columns: repeat(2, 1fr);
  }
  .works .grid:nth-of-type(even) .works__image {
    order: 2;
  }
}
.work__logo-container {
  align-items: center;
  background-color: #f3f9fa;
  border-radius: 100%;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.work__logo {
  width: 30px;
}

/* Contact Me */
.details {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact {
  padding: 4rem;
  border-radius: 10px;
}

.details h4,
.details p {
  font-size: 1.6rem;
}

.details__content {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid grey;
  width: 100%;
  max-width: 350px;
  text-align: left;
}

.contact input,
.contact textarea {
  background-color: transparent;
  margin-top: 2rem;
  width: 100%;
  border: 1px solid grey;
  border-radius: 20px;
  font-size: 1.6rem;
  padding: 2rem;
  color: #fff;
}

.contact textarea {
  resize: none;
}
.details .info {
  width: 100%;
}

@media screen and (min-width: 1000px) {
  .contact .grid--1x2--big {
    gap: 6rem;
  }
}

.contact .btn {
  margin-top: 4rem;
}

/* Contact Me */
.contact {
  transform: translateY(-18rem);
}
.contactMe .block--grey {
  padding-bottom: calc(var(--padding-vertical) + 12rem);
}

/* Footer */
.footer {
  text-align: center;
  color: #b0b3b8;
}

.footer p {
  margin: 0;
}

.footer.block {
  padding: 4rem 2rem;
}

/* thh and form message */
#thhmsg,
#form-message {
  background-color: #1c1c1c;
  padding: 1rem;
  border-radius: 0.5rem;
  display: none;
}

#thhmsg {
  color: #00e5ff;
}

/* Loading */

.loading {
  display: inline-block;
  transform: translateY(1.2rem);
  margin-left: 1rem;
}
.loading svg polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading svg polyline#back {
  fill: none;
  stroke: #ff4d504d;
}

.loading svg polyline#front {
  fill: none;
  stroke: red;
  stroke-dasharray: 48, 144;
  stroke-dashoffset: 192;
  animation: dash_682 1.2s linear infinite;
}

@keyframes dash_682 {
  72.5% {
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
  }
}
