html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

:root {
  --color-background: #0e0e10;
  --color-secondary: #1a1b1e;
  --color-text: #ededed;
  --color-primary: #c5c5c5;
  --color-accent: #ff3d00;
  --color-tertiary: #323544;
  --font-family: "Hack", monospace;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ----------------------- TITLE SECTION----------------------- */
.title-container {
  padding: 200px 20px 50px 20px;
  margin-top: 50px;
}

.span-title {
  background: linear-gradient(
    167deg,
    rgba(237, 237, 237, 1) 15%,
    rgba(255, 61, 0, 1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.buttons-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

h1.title {
  font-size: 4.8em;
  margin: 0;
}

h2.title-sub {
  font-size: 3.5em;
  margin: 0;
}

h5.location-title {
  font-size: 0.85em;
  margin: 10px 0 0 0;
  text-align: center;
}

h3.section-title {
  font-size: 2.25em;
  margin: 0;
  padding-top: 160px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 60px;
}

.about-text {
  max-width: 800px;
}

.title-text {
  margin-top: 20px;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 200px 20px 20px 0px;
}

/* ----------------------- LOCATION ----------------------- */
.location {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 20px;
  margin-top: 47px;
}

.location-img {
  border-radius: 100%;
  border-color: var(--color-text);
  border-style: solid;
  border-width: 0.5px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
  width: 180px;
  height: 180px;
  vertical-align: middle;
  margin-right: 8px;
}

/* ----------------------- SKILLS GRID ----------------------- */
.skills .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 20px;
}

.skills .card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem;
  border-radius: 1rem;
  background-color: var(--color-secondary);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.5s ease, box-shadow 0.3s ease;
}

.skills .card:hover {
  transform: scale(1.03);
  background: linear-gradient(
    167deg,
    rgba(26, 27, 30, 1) 15%,
    rgba(50, 53, 68, 1) 100%
  );
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.skills .card-icon {
  padding: 0.75rem;
  background-color: var(--color-tertiary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.skills .card-icon svg {
  width: 25px;
  height: 25px;
}

.skills .card-content h4 {
  font-size: 1.15em;
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
}

.skills .card-content p {
  font-size: 0.8em;
  color: rgba(237, 237, 237, 0.7);
  margin: 0;
}

/* ----------------------- DOWNLOAD cv btn ----------------------- */
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 1);
  outline: 0;
  transition: all 0.8s;
  text-decoration: none;
}

.download-btn:hover {
  text-decoration: underline;
  cursor: pointer;
}

.texts {
  margin-left: 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.text-1 {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-2 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.download-btn svg {
  vertical-align: middle;
}

@media (max-width: 768px) {
  body {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

/* ----------------------- PROJECTS GRID ----------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "project1 project1"
    "project2 subgrid";
  gap: 1.5rem;
}

.project1 {
  grid-area: project1;
  min-height: 400px;
}

.project2 {
  grid-area: project2;
}

.project-subgrid {
  grid-area: subgrid;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* ----------------------- PROJECT CARD ----------------------- */
.project-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  min-height: 80px;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, #1a1b1e, #0e0e10);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    167deg,
    rgba(255, 61, 0, 0.15),
    rgba(255, 61, 0, 0)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}

/* ----------------------- PROJECT CONTENT ----------------------- */
.project-title {
  font-size: 1.5em;
  margin: 0 0 0 0;
  color: var(--color-text);
}

.project-desc {
  font-size: 0.9em;
  color: rgba(237, 237, 237, 0.7);
  margin-bottom: 1rem;
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.project-card:hover .project-link {
  text-decoration: none;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "project1"
      "project2"
      "subgrid";
  }

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

  .project1 {
    min-height: 300px;
  }
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-badge {
  font-size: 0.8em;
  padding: 0.28rem 0.6rem;
  border-radius: 0.5rem;
  background-color: var();
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

/* ----------------------- PROJECT BADGE ----------------------- */
.project-badge {
  display: inline-flex;
  padding: 8px 18px;
  text-decoration: none;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-accent);
  transition: 0.3s;
  box-shadow: 4px 4px 0 black;
  transform: skewX(-15deg);
  border: none;
  cursor: pointer;
  float: right;
}

/* ----------------------- CONTACT SECTION ----------------------- */
.contact-content p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.email-row {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

#email-text {
  font-weight: bold;
  border: 0.1rem solid var(--color-text);
  border-radius: 1rem;
  padding: 0.4rem 0.8rem;
}

#copy-email {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--color-secondary);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.3s;
}

#copy-email:hover {
  background-color: var(--color-tertiary);
}

.contact-item {
  margin-top: 1.5rem;
}

a.link {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
  text-decoration: underline;
}

a.link:hover {
  color: #ff5722;
}

@media (max-width: 480px) {
  .email-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
/* ----------------------- FOOTER ----------------------- */
footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px 0;
  font-size: 0.9em;
  color: rgba(237, 237, 237, 0.6);
}

/* ----------------------- MEDIA QUERIES ----------------------- */
/* Tablets */
@media (max-width: 1024px) {
  .title-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 150px 20px 20px 20px;
    margin-top: 0px;
  }

  .title-text h1.title { font-size: 3.5em; }
  .title-text h2.title-sub { font-size: 2.5em; }

  .buttons-container { justify-content: center; flex-wrap: wrap; gap: 15px; }

  .location { margin-left: 0; margin-top: 20px; }
}

@media (max-width: 1020px) {
  .location-img {display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  body { padding: 0 15px; }

  .title-text h1.title { font-size: 3.5em; }
  .title-text h2.title-sub { font-size: 2.5em; }

  .projects-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "project1"
      "project2"
      "subgrid";
  }

  .project1 { min-height: 300px; }
  .project-subgrid { grid-template-columns: 1fr; }
}

/* MOBILE SMALL */
@media (max-width: 480px) {
  .email-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .title-text h1.title { font-size: 2.8em; }
  .title-text h2.title-sub { font-size: 2em; }
}