:root{
  --text-color: #1e272c;
  --link-color: #5865F2;
  --background-color: #E8E1D5;
}

*{
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: 'Outfit', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

/* NAVBAR Styles */

nav {
  position: fixed;
  top: 1rem;
  left: 2rem;
  right: 2rem;
  z-index: 1000;

  margin: 0;
  padding: 2rem 3rem;

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

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;

  box-shadow:
    0 10px 30px rgba(54, 69, 79, 0.12),
    0 2px 6px rgba(54, 69, 79, 0.08);
}

nav .logo {
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 600;
}

nav a {
  color: var(--text-color);
}

nav .nav-links {
  color: var(--text-color);
  display: flex;
  gap: 1.5rem;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* HERO Styles */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Raleway', sans-serif;
}

.hero-left {
  flex: 1;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 6rem;
  position: relative;
  z-index: 1;
}

.logo-mark {
  position: absolute;
  top: 3rem;
  left: 4rem;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.hero-intro .greeting {
  font-size: 1.2rem;
  font-weight: 500;
  border-bottom: 2px solid var(--text-color);
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

.hero-intro .name {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.hero-intro .role {
  font-size: 1.1rem;
  font-weight: 500;
  color: #7a7a7a;
  margin-bottom: 3rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(54, 69, 79, 0.08);
  border-radius: 10px;
  color: var(--text-color);
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  background: var(--link-color);
  color: white;
}

.hero-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #111214;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

.img-circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;

  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.05),
    0 0 60px rgba(88, 101, 242, 0.35);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.img-circle {
  border: 4px solid var(--link-color);
  box-shadow: 0 0 50px rgba(88, 101, 242, 0.3);
}

/* ABOUT Styles */

#about {
  min-height: 70vh;
  padding: 8rem 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111214;
  color: #f4f1eb;
  font-family: 'Raleway', sans-serif;
}

.about-content {
  width: min(760px, 100%);
  text-align: left;
}

.section-label {
  margin-bottom: 1.5rem;
  color: #9da5b4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.about-content h2 {
  max-width: 680px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

.about-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 1.5rem;
  background-color: rgba(244, 241, 235, 0.16);
}

.about-content p:not(.section-label) {
  max-width: 720px;
  margin-bottom: 1.5rem;
  color: #aab3c2;
  font-size: 1.1rem;
  line-height: 1.8;
}


/* PROJECTS Styles */

#projects {
  padding: 8rem 8%;
  background-color: var(--background-color);
  font-family: 'Raleway', sans-serif;
}

.projects-heading {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

.projects-heading .section-label {
  color: #68747c;
}

.projects-heading h2 {
  color: var(--text-color);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

.projects-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.project-card {
  min-height: 360px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #111214;
  color: #f4f1eb;
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(54, 69, 79, 0.14);
}

.project-number {
  color: #8e97a5;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.project-card-content h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.project-card-content p {
  max-width: 480px;
  margin-bottom: 1.5rem;
  color: #aab3c2;
  font-size: 1rem;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.project-tags span {
  padding: 0.45rem 0.7rem;
  color: #d9dce2;
  border: 1px solid rgba(244, 241, 235, 0.2);
  border-radius: 999px;
  font-size: 0.78rem;
}

.project-link {
  color: #f4f1eb;
  font-size: 0.95rem;
  font-weight: 700;
}

.project-link i {
  margin-left: 0.5rem;
  color: var(--link-color);
}

@media (max-width: 700px) {
  #projects {
    padding: 6rem 2rem;
  }

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

  .project-card {
    min-height: 320px;
  }
}

/* SKILLS Styles */

#skills {
  padding: 8rem 6%;
  background-color: var(--background-color);
  color: #f4f1eb;
  font-family: 'Raleway', sans-serif;
}

.skills-heading {
  width: min(900px, 100%);
  margin: 0 auto 4.5rem;
  text-align: center;
}

.skills-heading .section-label {
  color: #68747c;
}

.skills-heading h2 {
  color: var(--text-color);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

.skills-heading > p:last-child {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: #68747c;
  font-size: 1.1rem;
  line-height: 1.6;
}

.skills-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.skill-card {
  width: 240px;
  min-height: 190px;
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5f1e9;
  color: var(--text-color);
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(54, 69, 79, 0.14);
}

.skill-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  display: grid;
  place-items: center;
  color: var(--text-color);
  background-color: rgba(54, 69, 79, 0.06);
  border: 1px solid rgba(54, 69, 79, 0.12);
  border-radius: 50%;
  font-size: 1.45rem;
}

.skill-card h3 {
  margin-bottom: 1.2rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.skill-card p {
  margin: 0;
  color: #68747c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

@media (max-width: 950px) {
  .skill-card {
    width: min(240px, calc(50% - 0.75rem));
  }
}

@media (max-width: 700px) {
  #skills {
    padding: 6rem 2rem;
  }

  .skills-grid {
    gap: 1rem;
  }

  .skill-card {
    width: 100%;
    min-height: 210px;
  }
}

/* CONTACT Styles */

#contact {
  padding: 8rem 8%;
  background-color: #111214;
  color: #f4f1eb;
  font-family: 'Raleway', sans-serif;
}

.contact-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 7rem;
  align-items: start;
}

.contact-intro h2 {
  max-width: 600px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.contact-intro > p:not(.section-label) {
  max-width: 540px;
  margin-bottom: 2.5rem;
  color: #aab3c2;
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #f4f1eb;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(244, 241, 235, 0.5);
  padding-bottom: 0.4rem;
}

.contact-email i {
  color: var(--link-color);
  font-size: 0.85rem;
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #f4f1eb;
  border: 1px solid rgba(244, 241, 235, 0.25);
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-socials a:hover {
  background-color: var(--link-color);
  border-color: var(--link-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-form label {
  margin-top: 0.75rem;
  color: #d9dce2;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.95rem 1rem;
  color: #f4f1eb;
  background-color: rgba(244, 241, 235, 0.06);
  border: 1px solid rgba(244, 241, 235, 0.22);
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7f8998;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

.contact-form-button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.95rem 1.25rem;
  color: #111214;
  background-color: #f4f1eb;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.contact-form-button i {
  margin-left: 0.6rem;
  color: var(--link-color);
}

@media (max-width: 800px) {
  #contact {
    padding: 6rem 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 700px) {
  nav {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 1rem 1.25rem;
  }

  nav .logo {
    font-size: 1.5rem;
  }

  .nav-toggle-label {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }

  .nav-toggle-label span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  nav .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(54, 69, 79, 0.12);
  }

  nav .nav-links a {
    padding: 0.85rem 0.75rem;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label span:first-child {
    transform: translateY(11px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:last-child {
    transform: translateY(-11px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    flex-direction: column;
  }

  .hero-left {
    min-height: 62vh;
    padding: 8rem 2rem 4rem;
  }

  .hero-intro .name {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .hero-right {
    min-height: 52vh;
    padding: 3rem 1.5rem;
  }

  .hero-right::before {
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }

  .img-circle {
    width: min(78vw, 340px);
    height: min(78vw, 340px);
  }

  #about {
    min-height: auto;
    padding: 6rem 2rem;
  }

  .about-content p:not(.section-label) {
    font-size: 1rem;
    line-height: 1.7;
  }
}