@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

:root {
  --richcharcoal: #0e1117; /* Primary Background */
  --slateblack: #171b22; /* Secondary Background */
  --darkgray: #1e242d; /* Section Background */
  --graphite: #242b35; /* Card Background */
  --softslate: #313a46; /* Border */
  --articwhite: #f5f7fa; /* Primary Text */
  --coolgray: #a9b4c2; /* Secondary Text */
  --slategray: #7c8898; /* Muted Text */
  --glacialblue: #5dbfd8;
  --iceblue: #82d7ea; /* Accent Hover  */
  --deepglacier: #3a8ea5; /* Dark Accent */
  --frostmint: #87e8d1; /* Success/Highlight */
  --lighterglacier: #73cee4; /* Button Hover */
  --almostblack: #0e1117; /* Button Text */
  --glacialteal: #5cc6b3; /* Primary Accent , Button Background */
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--richcharcoal);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  color: var(--articwhite);
}

h1 {
  color: var(--articwhite);
  font-size: clamp(4rem, 4vw, 4.3rem);
  letter-spacing: 1.3px;
}

h2 {
  color: var(--articwhite);
  font-weight: 500;
  letter-spacing: 1.2px;
  font-size: clamp(1rem, 2.5vw, 2.5rem);
  font-family: "Inter", sans-serif;
}

h3 {
  color: var(--glacialteal);
  letter-spacing: 2px;
  font-weight: 300;
  padding-bottom: 40px;
  font-size: 16px;
}

p {
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  font-family: "Outfit", sans-serif;
  color: var(--coolgray);
}

section {
  background-color: var(--slateblack);
  padding: 60px;
  margin: 0px 20px;
  border-style: solid;
  border-bottom: none;
  border-color: var(--softslate);
  border-width: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

button {
  border-radius: 6px;
  padding-left: clamp(1rem, 1.8rem, 2rem);
  padding-right: clamp(1rem, 1.8rem, 2rem);
  padding-top: clamp(0.7rem, 1rem, 1.1rem);
  padding-bottom: clamp(0.7rem, 1rem, 1.1rem);
  align-items: center;
  justify-content: center;
  letter-spacing: 1.2px;
  font-family: "Outfit", sans-serif;
}

.buttondark {
  background-color: var(--slateblack);
  color: var(--articwhite);
  border-color: var(--softslate);
  border-style: solid;
}

.buttondark i {
  color: var(--frostmint);
}

.buttondark:hover {
  cursor: pointer;
  border-color: var(--frostmint);
  color: var(--frostmint);
  transition: 0.5s ease;
}

.buttonteal {
  background-color: var(--glacialteal);
  border-width: 1px;
  border-style: solid;
}

.buttonteal:hover {
  background-color: var(--frostmint);
  transition: 0.5s ease;
  cursor: pointer;
}

.glacialtext {
  color: var(--glacialteal);
}

.page__wrapper {
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}

/*  =======================================
          HEADER / NAV SECTION              
========================================= */

header {
  background-color: var(--almostblack);
  padding: 20px;
  margin-top: 20px;
  margin-right: 20px;
  margin-left: 20px;
  border-style: solid;
  border-radius: 6px;
  border-bottom: none;
  border-color: var(--softslate);
  border-width: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__img {
  max-height: 5vh;
}

header nav {
  display: flex;
}

.nav__link {
  display: inline;
  letter-spacing: 0.7px;
  padding-right: 40px;
  font-weight: 600;
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  color: var(--coolgray);
}

.nav__link a {
  color: var(--coolgray);
}

.nav__link a:hover {
  color: var(--glacialteal);
  transition: 0.6s ease;
}

.headerbutton i {
  font-size: clamp(0.6rem, 0.8vw, 1rem);
  padding-left: clamp(0.3rem, 0.5vw, 0.5rem);
}

/* ==========================
   HERO SECTION
========================== */

.hero {
  border-top: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 85vh;
  background:
    linear-gradient(
      to right,
      rgb(14, 17, 23),
      rgba(14, 17, 23, 0.5),
      rgba(14, 17, 23, 0.001)
    ),
    linear-gradient(to bottom, rgb(14, 17, 23), rgba(14, 17, 23, 0.001)),
    url("./images/desk.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.herocontent__wrapper {
  display: flex;
  flex-direction: column;
  max-width: 30vw;
  align-self: flex-start;
  padding: 120px 60px;
  height: 100%;
}

.herotext__wrapper {
  display: flex;
  flex-direction: column;
}

.herotext__wrapper p {
  color: var(--coolgray);
  padding: 30px 0px;
}

.herobutton__wrapper {
  padding: 30px 0px;
  align-items: center;
  display: flex;
  gap: 20px;
}

.herotechstack__wrapper {
  color: var(--glacialteal);
  display: flex;
  width: 100%;
  justify-content: left;
  padding: 40px 0px;
  font-size: clamp(1rem, 1vw, 1.3rem);
}

.herotechstack__tech {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: left;
  padding-right: 24px;
  font-family: "Outfit", sans-serif;
}

.herotechstack__tech i {
  padding-right: 12px;
}

/*  =======================================
             ABOUT ME SECTION                
========================================= */

.aboutme {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.aboutmeheader__wrapper {
  width: 100%;
}

.aboutmecontent__wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.aboutmetext__wrapper {
  display: flex;
  flex-direction: column;
  width: 30%;
}

.aboutme p {
  padding-top: 20px;
}

.aboutmeimg__wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30%;
  padding: 40px;
}

.aboutmeimg__circle {
  z-index: 2;
}

.aboutmeimg__circle img {
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glacialteal);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aboutmeimg__dots {
  position: absolute;
  right: 35px;
  bottom: 40px;
  width: 140px;
  height: 126px;
  background-image: radial-gradient(
    var(--glacialteal) 1.5px,
    transparent 1.5px
  );
  background-size: 16px 16px;
  opacity: 0.35;
}

.aboutmefacts__wrapper {
  display: flex;
  flex-direction: column;
  width: 25%;
}

.aboutmefacts__wrapper li {
  padding: 20px 0px;
  color: var(--coolgray);
  align-items: center;
}

.aboutmefacts__wrapper i {
  color: var(--glacialteal);
  padding-right: 12px;
  font-size: 24px;
}

/*  =======================================
             SKILLS SECTION                
========================================= */

.skills {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.5rem;
}

.skillsheader__wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.skillsheader__wrapper h3 {
  padding-bottom: 0.75rem;
}

.skillsheader__wrapper h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Holds all three cards */
.skillscards__wrapper {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(240px, 0.7fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* Shared card styling */

.skill-card {
  padding: 2rem;
  background: linear-gradient(
    145deg,
    rgba(36, 43, 53, 0.92),
    rgba(23, 27, 34, 0.98)
  );

  border: 1px solid var(--softslate);
  border-radius: 12px;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--glacialteal);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    0 0 25px rgba(92, 198, 179, 0.08);
}

/* Header inside Frontend and Tools cards */

.skill-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;

  margin-bottom: 2rem;
}

.skill-card__header h3,
.skill-card--learning h3 {
  padding: 0;

  color: var(--articwhite);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.skill-card__label {
  margin-bottom: 0.35rem;

  color: var(--glacialteal);
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* Small square icon */
.skill-card__icon {
  flex-shrink: 0;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  color: var(--glacialteal);
  background-color: rgba(92, 198, 179, 0.08);

  border: 1px solid rgba(92, 198, 179, 0.3);
  border-radius: 8px;

  font-size: 1.1rem;
}

/* Skill rows */
.skills-list {
  display: grid;
  gap: 1.4rem;
}

.skill__details {
  display: flex;
  justify-content: space-between;
  gap: 1rem;

  margin-bottom: 0.6rem;

  color: var(--coolgray);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
}

.skill__details span:first-child {
  color: var(--articwhite);
}

/* Background track */
.skill__bar {
  width: 100%;
  height: 5px;

  overflow: hidden;

  background-color: var(--softslate);
  border-radius: 100px;
}

/* Colored progress */
.skill__progress {
  width: var(--skill-level);
  height: 100%;

  background: linear-gradient(
    to right,
    var(--deepglacier),
    var(--glacialteal),
    var(--iceblue)
  );

  border-radius: inherit;
}

/* Learning card */
.skill-card--learning {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.learning-card__icon {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  margin-bottom: 1.75rem;

  color: var(--almostblack);
  background: linear-gradient(135deg, var(--glacialblue), var(--frostmint));

  border-radius: 50%;

  font-size: 1.35rem;
  box-shadow: 0 10px 30px rgba(92, 198, 179, 0.2);
}

.learning-card__text {
  margin-top: 1rem;

  color: var(--coolgray);
  font-size: 1rem;
  line-height: 1.7;
}

.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;

  margin-block: 1.5rem;
}

.learning-tags span {
  padding: 0.4rem 0.7rem;

  color: var(--iceblue);
  background-color: rgba(93, 191, 216, 0.08);

  border: 1px solid rgba(93, 191, 216, 0.25);
  border-radius: 100px;

  font-size: 0.72rem;
}

.learning-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  margin-top: auto;

  color: var(--glacialteal);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.learning-card__link i {
  transition: transform 0.3s ease;
}

.learning-card__link:hover i {
  transform: translateX(5px);
}

/*  =======================================
             PROJECTS SECTION                
========================================= */

.projects {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.25rem;
}

/* Heading and View All link */
.projectsheader__wrapper {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.projectsheader__wrapper h3 {
  padding-bottom: 0.75rem;
}

.projectsheader__wrapper h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.projectsheader__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;

  padding-bottom: 0.4rem;

  color: var(--glacialteal);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;

  transition: color 0.3s ease;
}

.projectsheader__link i {
  transition: transform 0.3s ease;
}

.projectsheader__link:hover {
  color: var(--iceblue);
}

.projectsheader__link:hover i {
  transform: translateX(5px);
}

/* Entire list of projects */
.projectslist__wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Individual horizontal project row */
.projectcard {
  width: 100%;

  display: grid;
  grid-template-columns:
    minmax(250px, 0.9fr)
    minmax(300px, 1.25fr)
    minmax(170px, 0.45fr);

  align-items: stretch;

  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(36, 43, 53, 0.76),
    rgba(23, 27, 34, 0.96)
  );

  border: 1px solid var(--softslate);
  border-bottom: none;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Round only the top card */
.projectcard:first-child {
  border-radius: 12px 12px 0 0;
}

/* Round only the bottom card */
.projectcard:last-child {
  border-bottom: 1px solid var(--softslate);
  border-radius: 0 0 12px 12px;
}

.projectcard:hover {
  position: relative;
  z-index: 2;

  transform: translateY(-3px);

  border-color: rgba(92, 198, 179, 0.75);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.24),
    0 0 30px rgba(92, 198, 179, 0.06);
}

/* Image area */
.projectcard__image-link {
  display: block;
  min-width: 0;

  overflow: hidden;
}

.projectcard__image {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 230px;

  object-fit: cover;
  object-position: center;

  filter: saturate(0.88);

  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.projectcard:hover .projectcard__image {
  transform: scale(1.035);
  filter: saturate(1);
}

/* Middle content area */
.projectcard__content {
  min-width: 0;

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

  padding: 2.25rem 2.5rem;

  border-left: 1px solid var(--softslate);
  border-right: 1px solid var(--softslate);
}

.projectcard__number {
  margin-bottom: 0.65rem;

  color: var(--glacialteal);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.projectcard__title {
  padding: 0;
  margin-bottom: 0.9rem;

  color: var(--articwhite);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0;
}

.projectcard__description {
  max-width: 550px;

  font-size: 1rem;
  line-height: 1.65;
}

/* Technology pills */
.projectcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;

  margin-top: 1.25rem;
}

.projectcard__tags li {
  padding: 0.38rem 0.75rem;

  color: var(--iceblue);
  background-color: rgba(93, 191, 216, 0.08);

  border: 1px solid rgba(93, 191, 216, 0.25);
  border-radius: 100px;

  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
}

/* Right action area */
.projectcard__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 1.5rem;
}

.projectcard__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  min-height: 66px;
  padding: 1rem 0.25rem;

  color: var(--articwhite);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;

  border-bottom: 1px solid var(--softslate);

  transition: color 0.3s ease;
}

.projectcard__action:last-child {
  border-bottom: none;
}

.projectcard__action i {
  flex-shrink: 0;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  color: var(--glacialteal);

  border: 1px solid var(--softslate);
  border-radius: 50%;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.projectcard__action:hover {
  color: var(--glacialteal);
}

.projectcard__action:hover i {
  color: var(--almostblack);
  background-color: var(--glacialteal);
  border-color: var(--glacialteal);

  transform: translateY(-2px);
}

/*  =======================================
             CONTACT SECTION                
========================================= */

.contact {
  display: block;
  padding: 60px;
}

/* Main CTA card */
.contact__card {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 280px;

  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);

  overflow: hidden;

  padding: clamp(2rem, 5vw, 4.5rem);

  background: linear-gradient(
    90deg,
    rgba(23, 27, 34, 0.98) 0%,
    rgba(30, 36, 45, 0.94) 55%,
    rgba(23, 27, 34, 0.88) 100%
  );

  border: 1px solid var(--softslate);
  border-radius: 12px;

  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}

/* Decorative mountain silhouette */

.contact__card::before {
  content: "";

  position: absolute;
  z-index: -2;

  left: 0;
  right: 0;
  bottom: 0;

  height: 68%;

  background:
    linear-gradient(
      to top,
      rgba(7, 12, 18, 0.88),
      rgba(7, 12, 18, 0.15),
      transparent
    ),
    url("");

  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;

  opacity: 0.48;
}

/* Soft glow */
.contact__card::after {
  content: "";

  position: absolute;
  z-index: -1;

  width: 380px;
  height: 380px;

  right: -150px;
  top: -210px;

  background: radial-gradient(
    circle,
    rgba(92, 198, 179, 0.13),
    transparent 68%
  );

  border-radius: 50%;
}

/* Left content */
.contact__heading {
  position: relative;
  z-index: 1;
}

.contact__eyebrow {
  margin-bottom: 1rem;

  color: var(--glacialteal);
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.contact__heading h2 {
  max-width: 620px;

  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.contact__heading h2 span {
  display: block;
}

/* Right content */
.contact__content {
  position: relative;
  z-index: 1;

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

.contact__content p {
  max-width: 500px;

  font-size: 1rem;
  line-height: 1.75;
}

/* Buttons */
.contact__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;

  margin-top: 1.75rem;
}

.contact__button {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  padding: 0.8rem 1.4rem;

  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;

  border: 1px solid transparent;
  border-radius: 6px;

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact__button--primary {
  color: var(--almostblack);

  background: linear-gradient(135deg, var(--glacialblue), var(--frostmint));

  box-shadow: 0 12px 28px rgba(92, 198, 179, 0.18);
}

.contact__button--primary:hover {
  transform: translateY(-3px);

  box-shadow: 0 16px 34px rgba(92, 198, 179, 0.28);
}

.contact__button--secondary {
  color: var(--articwhite);
  background-color: rgba(14, 17, 23, 0.4);

  border-color: var(--softslate);
}

.contact__button--secondary:hover {
  color: var(--glacialteal);

  border-color: var(--glacialteal);

  transform: translateY(-3px);
}

.contact__button i {
  font-size: 0.85rem;

  transition: transform 0.3s ease;
}

.contact__button:hover .fa-arrow-right {
  transform: translateX(4px);
}

/* Small star detail */
.contact__decoration {
  position: absolute;

  right: 2.5rem;
  top: 2rem;

  color: rgba(130, 215, 234, 0.35);
  font-size: 1.4rem;

  transform: rotate(15deg);
}

/*  =======================================
             FOOTER SECTION                
========================================= */

.footer {
  margin: 0 20px 20px;
  padding: 0 60px;

  color: var(--coolgray);
  background-color: var(--richcharcoal);

  border: 1px solid var(--softslate);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

/* Main footer columns */
.footer__main {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.4fr)
    minmax(120px, 0.65fr)
    minmax(140px, 0.75fr)
    minmax(220px, 1fr);

  gap: clamp(2rem, 5vw, 5rem);

  padding: 3.5rem 0 3rem;
}

/* Shared footer columns */
.footer__brand,
.footer__column {
  min-width: 0;
}

/* Vertical dividers */
.footer__column {
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid rgba(49, 58, 70, 0.75);
}

/* Logo */
.footer__logo {
  display: inline-flex;
  align-items: center;
}

.footer__logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

/* Brand description */
.footer__description {
  max-width: 260px;
  margin-top: 1.25rem;

  color: var(--coolgray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Small teal headings */
.footer .footer__heading {
  margin: 0 0 1.25rem;
  padding: 0;

  color: var(--glacialteal);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* Navigation and social links */
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;

  color: var(--coolgray);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer__links a:hover {
  color: var(--glacialteal);
  transform: translateX(4px);
}

/* Social icons */
.footer__social-links i {
  width: 18px;
  color: var(--articwhite);
  font-size: 1rem;
  text-align: center;

  transition: color 0.3s ease;
}

.footer__social-links a:hover i {
  color: var(--glacialteal);
}

/* Connect column */
.footer__connect p {
  max-width: 270px;

  color: var(--coolgray);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__email {
  display: inline-block;
  margin-top: 1rem;

  color: var(--articwhite);
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;

  transition: color 0.3s ease;
}

.footer__email:hover {
  color: var(--glacialteal);
}

/* Copyright row */
.footer__bottom {
  position: relative;

  min-height: 68px;

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

  border-top: 1px solid rgba(49, 58, 70, 0.75);
}

.footer__bottom p {
  color: var(--slategray);
  font-size: 0.78rem;
  text-align: center;
}

/* Back-to-top circle */
.footer__top-button {
  position: absolute;
  right: 0;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  color: var(--glacialteal);
  background-color: rgba(14, 17, 23, 0.82);

  border: 1px solid var(--softslate);
  border-radius: 50%;

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.footer__top-button:hover {
  color: var(--almostblack);
  background-color: var(--glacialteal);
  border-color: var(--glacialteal);

  transform: translateY(-4px);
}

/*  =======================================

           MEDIA QUERIES              

=========================================  */

/* ==========================
   FOOTER RESPONSIVE STYLES
========================== */

@media (max-width: 950px) {
  .footer {
    padding-inline: 40px;
  }

  .footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__column {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 600px) {
  .footer {
    margin-inline: 20px;
    padding-inline: 24px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 2.25rem;

    padding-block: 2.5rem;
  }

  .footer__brand,
  .footer__column {
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__description,
  .footer__connect p {
    max-width: 360px;
    margin-inline: auto;
  }

  .footer__links {
    align-items: center;
  }

  .footer__email {
    overflow-wrap: anywhere;
  }

  .footer__bottom {
    min-height: 100px;
    padding-right: 0;
    padding-bottom: 3.5rem;
  }

  .footer__top-button {
    right: 50%;
    bottom: 0.75rem;
    transform: translateX(50%);
  }

  .footer__top-button:hover {
    transform: translateX(50%) translateY(-4px);
  }
}

/*  =======================================
             MEDIA QUERY 
             MEDIUM SCREENS
             MIN 768PX  MAX 920PX               
========================================= */

@media (min-width: 768px) and (max-width: 920px) {
  .button {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav__link {
    font-weight: 400;
    font-size: 0.7rem;
    padding-right: 15px;
  }

  .herocontent__wrapper {
    max-width: 60vw;
  }

  .aboutme {
    flex-direction: column;
  }

  .aboutmetext__wrapper {
    width: 70%;
    padding-bottom: 60px;
  }

  .aboutmeimg__wrapper {
    width: 70%;
    padding-bottom: 60px;
  }

  .aboutmefacts__wrapper {
    width: 70%;
  }

  .skillscards__wrapper {
    grid-template-columns: 1fr;
  }

  .projectcard {
    grid-template-columns:
      minmax(220px, 0.9fr)
      minmax(0, 1.25fr);
  }

  .projectcard__actions {
    display: none;
  }

  .projectcard__content {
    border-right: none;
  }

  .projectcard__description {
    display: none;
  }

  .contact__card {
    grid-template-columns: 1fr;
  }

  .footer__main {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__description {
    display: none;
  }

  .footer__connect {
    display: none;
  }
}

/*  =======================================
             MEDIA QUERY 
             SMALL SCREENS - IPHONE OPTIMIZED
             MIN 400PX  MAX 768PX               
========================================= */

@media (min-width: 400px) and (max-width: 768px) {
  section {
    padding: 20px;
  }

  h1 {
    font-size: 42px;
  }

  .button {
    padding: 10px;
  }

  .logo__img {
    max-height: 4vh;
  }

  .nav__wrapper {
    display: none;
  }

  .headerbutton__wrapper {
    display: none;
  }

  .hero {
    background:
      linear-gradient(to bottom, rgb(14, 17, 23), rgba(14, 17, 23, 0.2)),
      url("./images/desk.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    min-height: 38vh;
  }

  .herotext__wrapper p {
    display: none;
  }

  .herobutton__wrapper {
    flex-direction: column;
    align-items: start;
  }

  .herocontent__wrapper {
    max-width: 90vw;
    padding: 40px;
  }

  .herotechstack__wrapper {
    display: none;
  }

  .aboutme {
    flex-direction: column;
  }

  .aboutmetext__wrapper {
    width: 70vw;
  }

  .aboutmeimg__wrapper {
    width: 70vw;
  }

  .aboutmefacts__wrapper {
    width: 70vw;
  }

  .skillscards__wrapper {
    grid-template-columns: 1fr;
  }

  .skill-card--learning {
    display: none;
  }

  .projectsheader__wrapper h2 {
    display: none;
  }

  .projectsheader__link {
    display: none;
  }

  .projectslist__wrapper {
    gap: 20px;
  }

  .projectcard {
    grid-template-columns: auto;
  }

  .projectcard__actions {
    display: none;
  }

  .projectcard__content {
    border-right: none;
  }

  .projectcard__description {
    display: none;
  }

  .contact {
    padding: 20px;
  }

  .contact__card {
    grid-template-columns: 1fr;
  }

  .secondarycontactheader {
    display: none;
  }

  .contact__content p {
    display: none;
  }

  .contact__buttons {
    flex-wrap: nowrap;
  }

  .contact__button {
    min-height: none;
    font-size: 0.8rem;
    letter-spacing: normal;
    font-weight: 500;
    padding: 14px;
  }

  .footer__main {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__description {
    display: none;
  }

  .footer__connect {
    display: none;
  }

  .footer__column {
    display: none;
  }
}
