/* Variables */
:root{
    --bg:            #0B0F1A;
    --surface:       #12182A;
    --surface-2:     #1B2338;
    --border:        #262F47;
    --text:          #E7EAF3;
    --text-dim:      #8C93AB;
    --accent:        #F2B807;
    --accent-dim:    #7A6218;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', sans-serif;
  }

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

body {
  max-width: 375px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono), var(--sans);
}

/* Mobile Design 👇 */


/* Header */
header nav {
  display: flex;
  justify-content: space-between;
}

header {
  position: sticky;
  border-bottom: 1px solid var(--border);
  margin: 10px 0 0 0;
  padding-bottom: 10px;
  top: 0;
  z-index: 1000;
  background: var(--bg);
}

header .logo {
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  margin-top: 10px;
}

header .logo span {
  color: var(--accent)
}

.nav-toggle {
  background: none;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Menu */
.menu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--surface);
  width: 150px;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  visibility: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.menu-toggle:not(.hidden) {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

.menu-toggle a {
  transition: 0.3s ease;
}

.menu-toggle a:active {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.hire-link {
  text-decoration: none;
  color: var(--accent);
}

.nav-btn {
  margin-top: 30px;
  background: none;
  border: 1px solid var(--accent);
  padding: 10px;
  border-radius: 10px;
}

.nav-btn:active {
  scale: 1.1;
  transition: 0.3s ease;
  border: 1px solid var(--text);
}

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

/* Hero Card - About */
.hero {
  margin-bottom: 2rem;
}

.hero .wrap {
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding: 0 1rem 2rem;
}

.hero .wrap span {
  color: var(--accent);
}

.hero-header p {
  margin: 1rem 1rem 1rem 0;
  color: var(--text-dim);
  font-size: 18px;
}

.hero-actions a {
  text-decoration: none;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 2rem 1rem 2rem 0;
}

.view-projects {
  background: var(--accent);
  padding: 20px 15px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.3s ease;
  color: var(--surface);
}

.view-projects:active {
  scale: 1.1;
}

.view-projects a {
  color: var(--surface);
  font-weight: 800;
}

.contacts-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px 15px;
  border-radius: 10px;
  font-size: 14px;
  transition: 0.3s ease;
}

.contacts-btn a {
  color: var(--text);
  font-weight: 800;
}

.contacts-btn:active {
  scale: 1.1;
}

/* Hero Card - Skills */
.skills .section-head h2 {
  font-size: 28px;
  margin: 2rem 1rem 1rem 0;
}

.skills {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.section-head {
  padding: 0 1rem;
}

.section-head p {
  margin-bottom: 2rem;
  font-size: 16px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.skill-card {
  padding: 20px;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.skill-tag, .project-tag {
  background: var(--surface-2);
  color: var(--accent);
  padding: 5px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
}

.skill-card p {
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 500;
}

/* Hero Card - Projects */
#work {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.work-grid img {
  width: 50px;
  height: 50px;
}

.github-work {
  filter: grayscale(1) brightness(0) invert(1);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.work-card {
  padding: 20px;
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-card p {
  margin-bottom: 2rem;
  font-size: 16px;
}

/* Contact Section */
.contact {
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-inner h2 {
  margin-bottom: 1rem;
  font-size: 28px;
}

.contact-inner p {
  font-size: 16px;
  color: var(--text-dim);
}

.socials {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 2rem;
}

.socials img {
  width: 50px;
  height: 50px;
  filter: grayscale(1) brightness(0) invert(1);
}

footer {
  display: flex;
  justify-content: center;
  font-size: 12px;
  margin: 0 0 1rem 0;
}


/* Responsive Design - Desktop and Tablet Layout */

@media (min-width: 768px) {
  body {
    max-width: 1440px;
  }


  /* Header */
  .nav-toggle {
    display: none;
  }

  header, section {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  section {
    margin-bottom: 6rem;
  }

  .menu-toggle {
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    visibility: visible;
    opacity: 1;
    max-height: none;
    display: contents;
  }

  .close-menu {
    display: none;
  }

  .nav-links {
    grid-column: 2;
    justify-self: center;
    flex-direction: row;
    gap: 5rem;
    margin-top: 0.5rem;
  }

  .nav-btn {
    visibility: visible;
    display: block;
    margin-top: 0.5rem;
    grid-column: 3;
    justify-self: end;
  }

  header nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .logo {
    grid-column: 1;
  }


  /* Hero Card - About */
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 2rem;
  }

  .hero-actions {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-header {
    grid-column: 1;
  }

  /* Hero Card - Skills */
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    padding-top: 2rem;
  }

  .skill-card {
    max-width: 350px;
  }

  .skill-one {
    grid-column: 1;
  }

  .skill-two {
    grid-column: 2;
  }

  .skill-three {
    grid-column: 3;
  }


  /* Hero Card - Projects */
  .work-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    row-gap: 2rem;
    column-gap: 2rem;
    align-items: center;
    justify-items: center;
  }

  .project-one {
    grid-column: 1;
    grid-row: 1;
  }

  .project-two {
    grid-column: 2;
    grid-row: 1;
  }

  .project-three {
    grid-column: 1;
    grid-row: 2;
  }

  .project-four {
    grid-column: 2;
    grid-row: 2;
  }

  /* Contacts */
  .contact {
    width: calc(100% - 2rem);
    max-width: 1170px;
    margin: 2rem auto 2rem;
  }

  .contact-inner {
    width: 100%;
  }
}

/* Hover Effects */


/* Nav bar */
header .logo:hover {
  color: var(--accent);
  transition: 0.5s ease;
  cursor: default;
}
header .logo {
  transition: 0.5s ease;
}

header span:hover {
  color: var(--text);
  transition: 0.5s ease;
  cursor: default;
}

header span {
  transition: 0.5s ease;
}

header .logo {
  width: fit-content;
  display: inline-block;
}

header .nav-links li a:hover {
  color: var(--accent);
  transition: 0.5s ease;
}

header .nav-links li a {
  transition: 0.5s ease;
}

header .nav-btn:hover {
  transform: scale(1.1);
  transition: 0.5s ease;
  cursor: pointer;
}

header .nav-btn {
  transition: 0.5s ease;
}

/* Hero Card */
.hero-actions .view-projects:hover, .hero-actions .contacts-btn:hover {
  transform: scale(1.05);
  transition: 0.5s ease;
  cursor: pointer;
}

.hero-actions .view-projects, .hero-actions .contacts-btn {
  transition: 0.5s ease;
}

/* Skills Card */
.skills .skill-card:hover {
  transform: scale(1.1);
  transition: 0.5s ease;
  cursor: default;
  border: 1px solid var(--accent);
}

.skills .skill-card {
  transition: 0.5s ease;
}

/* Projects Card */
.work-card:hover {
  transform: scale(1.1);
  transition: 0.5s ease;
  cursor: default;
  border: 1px solid var(--accent);
}

.work-card {
  transition: 0.5s ease;
}

/* Contact Card */
.contact:hover {
  transform: scale(1.05);
  transition: 0.5s ease;
  cursor: default;
  border: 1px solid var(--accent);
}