/* General */

@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Double:wght@300&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

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

img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    user-select: none;
}

body {
    font-family: "Roboto Mono", monospace;
    background-color: #111;
    background-image: 
        linear-gradient(90deg, rgba(108, 100, 100, 0.182) 2px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html{
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    width: 100%;
}

p{
    color:rgb(160, 150, 153);
}

/* TRANSITION */

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.section__text {
    animation: slideInRight 1s ease-out;
}

section {
    animation: fadeInUp 1s ease-out;
}

#typed-name {
  font-family: "Bitcount Grid Double", system-ui;
  font-size: 3rem;
  color: white;
  white-space: nowrap;
}

#typed-name::after {
  content: '|';
  animation: blink 0.7s steps(1);
  animation-iteration-count: 7;
  animation-fill-mode: forwards;
  opacity: 0;
  margin-left: 5px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
/* DESKTOP NAV */

nav, .nav-links {
    display: flex;
}

nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;

}

.nav-links{
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a{
    color: white;
    text-decoration: none;
    text-decoration-color: white;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

a:hover, a:active {
    color: palevioletred;
    text-decoration: underline;
    text-underline-offset: 1rem;
}

.logo {
    font-size: 2rem;
}
.logo:hover {
    cursor: default;
}

.title, h1, h2, h3, h4, h5, h6 {
    font-family: "Bitcount Grid Double", system-ui;
    font-weight: 600;
}

.nav-links a, .menu-links a {
    font-family: "Bitcount Grid Double", system-ui;
    font-weight: 400; /* Adjust weight as needed */
}

.logo {
    font-family: "Bitcount Grid Double", system-ui;
    font-size: 2rem;
}

/* HAMBURGER MENU */

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger-icon:hover {
    transform: scale(1.1);
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    width: fit-content;
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    margin-top: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    -webkit-overflow-scrolling: touch;
}

.menu-links a {
    display: block;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: palevioletred;
    padding-left: 2rem;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 400px;
    padding: 0.5rem 0;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

/* SECTIONS */

section {
    padding-top: 4vh;
    padding-bottom: 4vh;
    margin: 0 10rem;
    margin-bottom: 6rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* PROFILE */

#profile {
    display: flex;
    justify-content: flex-start;
    gap: 5rem;
    height: 80vh;

}

.section__pic-container {
    display: flex;
    height: 275px;
    width: 275px;
    margin: auto 0;
    margin-top: 2.9rem;
}

.intro-block {
  padding-left: 9rem; /* Shifts the entire block right */
  text-align: left;
  padding-top: 6rem;
  flex: 1;
}

.section__text {
    align-self: right;
    text-align: center;
}

.section__text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    padding-left: 0; /* Reset if previously added */
    margin-right: 0;  /* Reset if previously added */
    text-align: center; /* Aligns with the first line */
}

.title {
    font-size: 3rem;
    text-align: center;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}


.intro-text {
  font-size: 1.3rem; /* Increase this value to make text larger */  
  background-color: rgba(255, 255, 255, 0.05); /* subtle contrast box */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin-top: 2.8rem;
  border-radius: 0.5rem;
  max-width: 600px;
  text-align: center;
  color: white;
  font-family: 'Courier New', monospace;
  font-weight: normal;
}

.intro-text p {
  color: #d0d0d0 !important;
  font-weight: normal !important;
}


/* ICONS */

.icon {
    cursor: pointer;
    height: 2rem;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

/* BUTTONS */

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.9rem;
}

.btn {
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    cursor: pointer;
    font-family: "Bitcount Grid Double", system-ui;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    touch-action: manipulation;
}

.btn-color-1 {
    background: rgb(53, 53, 53);
    color: white;
    border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover {
    background: palevioletred;
    border: palevioletred 0.1rem solid;
    color: white;
}

.btn-color-2 {
    background: none;
    color: white;
    border: rgb(156, 151, 151) 0.1rem solid;
}

.btn-color-2:hover {
    background: palevioletred;
    color: white;
    border: palevioletred 0.1rem solid;
}

.btn:hover {
    transform: scale(1.05);
}

/* Arrow Styling */
.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
  width: 2rem;
  height: 2rem;
  filter: brightness(0) invert(1); /* Makes image white */
}
.text-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}
/* Experience*/
#experience {
  padding-top: 2vh;
}

.experience-header {
  text-align: center;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.experience-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  color: rgb(200, 200, 200);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
  font-family: 'Courier New', monospace;
}

.experience-box:hover {
  transform: translateY(-5px);
  border-color: palevioletred;
}

.experience-box h2 {
  margin-bottom: 1rem;
}

.experience-sub-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: white;
  text-decoration: underline;
  font-size: 0.9rem;
}

/* Projects Section */
#projects {
  padding: 4rem 10rem;
  padding-top: 6rem;
  min-height: fit-content;
}

.projects-header {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
}

.project-toggle-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.project-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1.2rem;
  font-family: "Bitcount Grid Double", system-ui;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.project-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.project-toggle-btn.active {
  background: palevioletred;
  border-color: palevioletred;
}

.project-category {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.project-status-section {
  margin-bottom: 3rem;
}

.status-label {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.5rem 1.5rem;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  border-radius: 0.25rem;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: transform 0.3s ease, border-color 0.3s ease;
  font-family: 'Courier New', monospace;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: palevioletred;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-title {
  font-size: 1.5rem;
  color: white;
  margin: 0;
  font-family: "Bitcount Grid Double", system-ui;
  line-height: 1.3;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background-color: rgba(219, 112, 147, 0.2);
  border: 1px solid palevioletred;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 0.3rem;
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
}

.project-description {
  font-size: 0.8rem;
  color: rgb(200, 200, 200);
  line-height: 1.6;
  margin: 0;
}

.project-image {
  width: 300px;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Image Carousel */
.project-image-carousel {
  width: 300px;
  height: 200px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carousel-images {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: background-color 0.3s ease;
  border-radius: 0.3rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.carousel-btn:hover {
  background-color: palevioletred;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Skills Section */
#skills {
  padding: 4rem 10rem;
  padding-top: 0.5rem;
  min-height: fit-content;
}

.skills-header {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: stretch;
}

.skill-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 0.6rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
  min-height: 85px;
  width: 100%;
}

/* Center third row with 6 items */
.skill-card:nth-child(n+15):nth-child(-n+20) {
  margin-left: calc((100% / 7) / 12);
  margin-right: calc((100% / 7) / 12);
}

.skill-card:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: palevioletred;
}

.skill-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.4rem;
  padding: 0.2rem;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-name {
  font-size: 0.8rem;
  color: white;
  font-weight: 600;
  text-align: center;
  margin: 0;
  font-family: "Bitcount Grid Double", system-ui;
  line-height: 1.2;
}

.skill-level {
  font-size: 0.65rem;
  color: rgb(160, 150, 153);
  text-align: center;
  margin: 0;
  font-family: 'Courier New', monospace;
}

/* Leadership Section */
#Leadership {
  padding: 4rem 10rem;
  padding-top: 3rem;
  min-height: fit-content;
}

.leadership-header {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.leadership-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.leadership-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 3rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  transition: all 0.3s ease;
}

.leadership-box:hover {
  transform: translateY(-5px);
  border-color: palevioletred;
  background-color: rgba(255, 255, 255, 0.08);
}

.leadership-title {
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  font-family: "Bitcount Grid Double", system-ui;
  line-height: 1.4;
}

.leadership-description {
  font-size: 1rem;
  color: rgb(160, 150, 153);
  text-align: center;
  line-height: 1.6;
  font-family: 'Courier New', monospace;
  min-height: 1.5rem;
}

/* Contact Section */
#contact {
  padding: 4rem 10rem;
  padding-top: 3rem;
  min-height: fit-content;
  text-align: center;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.contact-info-container {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  padding: 3rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.contact-info-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  max-width: 100%;
  overflow: hidden;
}

.contact-label {
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
  margin: 0;
  font-family: "Bitcount Grid Double", system-ui;
}

.contact-email {
  font-size: 1.2rem;
  color: #a0c4ff;
  text-decoration: none;
  font-family: 'Courier New', monospace;
  transition: color 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.contact-email:hover {
  color: palevioletred;
  text-decoration: none;
}

.contact-info-right {
  display: flex;
  align-items: center;
}

.contact-linkedin {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.linkedin-icon {
  width: 4rem;
  height: 4rem;
}

.contact-linkedin:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background-color: #111;
  padding: 1.5rem 10rem;
  text-align: center;
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  font-family: "Bitcount Grid Double", system-ui;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: palevioletred;
  text-decoration: underline;
}

.copyright {
  color: white;
  font-size: 1rem;
  margin: 0;
  font-family: 'Courier New', monospace;
}
