@font-face {
    font-family: muli;
    src: url("fonts/Mulish/Mulish-Italic-VariableFont_wght.ttf");
}

@font-face {
    font-family: Space_Mono;
    src: url(/fonts/Space_Mono/SpaceMono-Regular.ttf);
}

body {
    /* background-color: #0f0f10; */
    background-image: url("images/NewWebBackground.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
}

.nav_container {
    top: 0; left: 0; right: 0;
    position: fixed;
    display: flex;
    justify-content: center;
    padding-top: 15px;
    z-index: 1000;
    padding-top: calc(12px + env(safe-area-inset-top))
}
.navbar {
    opacity: .4;
    display: flex;
    justify-content: center;
    width: fit-content;
    outline: 2px solid #717171;
    border-radius: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar a {
    font-family: "muli";
    color: white;
    padding-left: .8rem;
    padding-right: .8rem;
    padding-top: .3rem;
    padding-bottom: .3rem; 
    margin-left: 2px;
    margin-right: 2px;
    margin-top: .1rem;
    margin-bottom: .1rem;
    border-radius: 1.5rem;
    text-decoration: none;
}
.active {
    text-decoration: underline;
    background-color: #717171;
}
.nav-link:hover {
    background-color: #717171;
}

.container {
    margin-top: 10%;
    width: 65%;
    height: auto;
    padding: 2rem;
    padding-top: 3px;
    border-radius: 1.5rem;
    background-color: #1a1b1e;
}

.projects-page {
  background-color: rgba(0, 0, 0, 0);
  width: auto;
}

.content {
    margin-left: 1rem;
    line-height: 10px;
}

/* index */

.profile-pic {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2rem auto 1rem auto;
}
.profile-pic img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;

}

.profile-pic img:hover {
    box-shadow: 0 0 15px #046307;
    transform: scale(1.03);
    transition: all 0.3s ease;
}

.intro {
    color: #f2f3f5;
    font-family: "muli";
    font-size: 13pt;
}

.name {
    color: #046307;
    font-family: "Space_Mono";
    font-size: 60pt;
    padding: 0;
}

.desc {
    margin-top: 10px;
    color: #f2f3f5;
    font-family: "muli";
    font-size: 13pt;
}

.aboutBtn {
    line-height: 4rem;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 1.5rem;
    color: #b5b9bf;
    background-color: #046307;
    font-family: "muli";
    font-size: 20px;
    text-decoration: none;
}

.aboutBtn:hover {
    /* outline: 2px solid #b4b4b4; */
    background-color: #034d06;
}

/* about */

.about_container {
    position: absolute;
    width: 85%;
    height: 75%;
    top: 25%;
    padding: 2rem;
    padding-top: 3px;
    border-radius: 1.5rem;
}

.about_content {
    position: absolute;
    width: 85%;
    top: 25%;
    padding: 2rem;
    padding-top: 3px;
    border-radius: 1.5rem;
    background-color: #1a1b1e;
}

.about_title {
    margin-left: 1.2rem;
    color: #f2f3f5;
    font-family: "Space_Mono";
    font-size: 40pt;
}

.bio {
    color: #f2f3f5;
    font-family: "Muli";
    font-size: 23pt;
    line-height: 1px;
}

.bio_content {
    color:#b5b9bf;
    font-family: "Muli";
}

/*Contact*/

.contact_content {
    display: grid;
    place-items: center;     
    min-height: 100vh;       
    padding: 2rem 1rem;
}

.contact_container {
    display: flex;
    flex-direction: column;
    align-items: center;  
    gap: 1rem;
    width: 85%;
    max-width: 900px;       
    padding: 2rem;
    padding-top: 3px;
}

.contact_title {
    color: #f2f3f5;
    text-align: center;
    font-family: "Space_Mono", monospace;
    font-size: 40pt;
}

.side_by_side {
    display: flex;
    justify-content: center;  
    align-items: flex-start;   
    gap: 1rem;
    width: 100%;
    /*max-width: 600px;*/
}

.visually_hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.info_container, .message_container {
    flex: 1;
    padding: 1.5rem;
    background: #1a1b1e;
    color: #fff;
    border-radius: 8px;
    text-align: center;
}

.info_container {
    flex: 0 0 200px;
    height: 481px;
}

.info_container h3, .message_container h3 {
    color: #f2f3f5;
    font-family: "Muli";
    font-size: 16pt;
}

.info_container h3 {
    font-size: 20pt;
    margin-bottom: 5rem;
}

.info_container h4 {
  font-family: "Muli";
  color: #f2f3f5;
  margin-top: 7rem;
}

.info-email {
    color:#046307;
    font-family: "Muli";
    font-size: 12pt;
}

.info-btns {
    margin-top: 10rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;                 /* match LinkedIn button size */
  height: 48px;
  border-radius: 8px;
  background-color: #046307;   /* your primary green */
  color: #f2f3f5;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.github-btn:hover {
  background-color: #058a0b;   /* lighter green on hover */
  transform: scale(1.1);
}

.github-btn svg {
  width: 24px;                 /* consistent icon sizing */
  height: 24px;
  fill: currentColor;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: #0A66C2;    /* LinkedIn blue */
  color: #f2f3f5;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.linkedin-btn:hover {
  background-color: #004182;    /* darker on hover */
  transform: scale(1.1);
}

.linkedin-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.message-field {
    width: 30rem;
    height: 1.25 rem;
    padding: .75rem;
    margin-bottom: 20px;
    font-size: 12pt;
    font-family: "Muli";
    color: #f2f3f5;
    background-color: #1a1b1e;
    border-radius: 8px;
    border: 2px solid #b5b9bf;
    outline: none;
    box-shadow: none;
}

#contact_message {
    height: 12rem;
    padding: .75rem;
}

.send-btn {
    width: 7rem;
    height: 2rem;
    border-radius: 8px;
    border: none;
    background-color: #046307;
    font-family: "Muli";
    font-size: 12pt;
    color: #f2f3f5;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.1);
    background-color: #034d06;
}

/* Portfolio */
.projects-page {
  padding: 2rem 1rem 4rem;
}

.projects-header {
  margin-bottom: 1.25rem;
}

.projects-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #f2f3f5;
  font-family: "Space_Mono"
}

.projects-subtitle {
  margin: .35rem 0 0;
  opacity: .8;
  font-size: .95rem;
  color: #b5b9bf;
  font-family: "Muli"
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 960px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* Card */
.project-card {
  background: #1a1b1e;                      /* dark surface */
  border: 1px solid #2a2d31;                /* subtle border */
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.project-card:hover {
  transform: translateY(-2px) scale(1.02);  /* slight enlarge on hover */
  box-shadow: 0 16px 42px rgba(0,0,0,.45);
  border-color: #2f5630;                    /* subtle greenish hint */
}
.project-card__head { padding: 1rem 1rem .5rem; }
.project-card__title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #046307; font-family: "Space_Mono";}

.project-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #0c0d0f;
  border-top: 1px solid #2a2d31;
  border-bottom: 1px solid #2a2d31;
}

.project-card__summary {
  margin: 0;
  padding: .75rem 1rem 1rem;
  opacity: .85;
  font-size: .95rem;
  color: #f2f3f5;
  font-family: "Muli";
}

/* Buttons (reuse across site if you like) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn--primary {
  background: #046307;
  color: #fff;
  box-shadow: 0 8px 18px rgba(4,99,7,.35);
  font-family: "Space_Mono"
}
.btn--primary:hover { background: #034d06; }

/* Modal (expanded card) */
.project-modal {
  width: min(920px, 96vw);
  border: 1px solid #2a2d31;
  border-radius: 16px;
  background: #1f2124;
  color: inherit;
  padding: 0;
  box-shadow: 0 16px 42px rgba(0,0,0,.55);
}
.project-modal::backdrop { background: rgba(0,0,0,.55); }

.project-modal__header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2a2d31;
  background: #191b1e;
}
.project-modal__title { margin: 0; font-size: 1.25rem; color: #f2f3f5; font-family: "Muli";}
.project-modal__close {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid #046307; background: transparent; color: inherit;
  cursor: pointer; color: #046307;
}
.project-modal__close:hover {
  background: unset;
  background-color: rgba(4, 99, 7, .2);
  
}

.project-modal__body {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
}
@media (max-width: 800px) { .project-modal__body { grid-template-columns: 1fr; } }

.project-modal__image {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 12px; border: 1px solid #2a2d31; background: #0c0d0f;
}

.project-modal__desc { margin: 0; line-height: 1.6; color: #b5b9bf; font-family: "Muli";}
.project-modal__stack { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; font-family: "Muli"}
.project-modal__pill {
  background: #122915; color: #b4f5b7; border: 1px solid #0e4f12;
  padding: .35rem .6rem; border-radius: 999px; font-size: .85rem;
}
.project-modal__actions { margin-top: 1rem; }
