*, *::before, *::after {
    margin: 0;
    padding: 0;
}

@font-face {
  font-family: 'MyFont';
  src: url('./assets/Grandstander-clean.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MyFont';
  src: url('./assets/Grandstander-clean.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

p, li {
  line-height: 1.6;   /* try 1.5–1.8 depending on your font */
  margin: 0 0 1rem;    /* space after each paragraph */
}

/* Headings usually tighter */
h1, h2, h3 { line-height: 1.2; }

body {
    font-family: 'MyFont';
    background-color: #121212;
    color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'MyFont';
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

p {
  color: #b0b0b0;
}

/* Transition */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

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

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  background-color: #1e1e1e;
}
.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: #e0e0e0;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: #bb86fc;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #bb86fc;
}

.logo {
  font-size: 2rem;
  color: #bb86fc;
}

.logo:hover {
  cursor: default;
}

/* 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;
}

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

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1e1e1e;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links a:hover {
  color: #bb86fc; /* Purple accent for hover */
}

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

.menu-links.open {
  max-height: 300px;
}

.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);
}

.hamburger-icon span:first-child {
  transform: none;
}
.hamburger-icon span:first-child {
  opacity: 1;
}
.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

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

.section-container {
  display: flex;
}

/* Profile Section */

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

#profile .arrow {
  position: absolute;
  right: 2rem;
  bottom: 2.5rem;
}

.section__pic-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section__pic-container img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #bb86fc;
}

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

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

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

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

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  filter: invert(1);
}

.color-icon {
  cursor: pointer;
  height: 2rem;
  filter: none;
}

/* BUTTONS */

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

.btn {
  font-family: 'MyFont';
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn2 {
    font-family: 'MyFont';
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1.5rem;
    width: 14rem;
    border-radius: 2rem;
}

.projects-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    min-width: 0;
}

.projects-grid > * { /* add */
    min-width: 0;
}

.card {
    display: block;
    padding: 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #191919;
    border: 2px solid #6f55d2;
    min-width: 0;
}

.card__media {
    border-radius: 8px;
    overflow: hidden;
}

.card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.card h2 {
    margin: 1rem 0 0;
}

.card:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 4px;
}

html {
    scroll-behavior: smooth;
}

.project-section {
    margin: 6rem 0;
}

.btn-color-1:hover,
.btn-color-2:hover {
    cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background-color: #bb86fc;
  color: #121212;
}

.btn-color-1:hover {
  background: #9a67ea;
}

.btn-color-2 {
  background: none;
  border: #bb86fc 0.1rem solid;
  color: #bb86fc;
}

.btn-color-2:hover {
  background-color: #bb86fc;
  color: #121212;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
    display: block;
    position: absolute;
    right: -8rem;
    bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  background-color: #1e1e1e;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: #bb86fc;
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* Experience */
#experience {
  position: relative;
}

.experience-sub-title {
  color: #bb86fc;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 8rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS */

#project1,
#project2,
#project3 {
    position: relative;
}

#projects {
  position: relative;
}

.color-container {
  border-color: #bb86fc;
  background: rgb(250, 250, 250);
  background-color: #1e1e1e;
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: #bb86fc;
}

.project-btn {
  color: #bb86fc;
  border-color: #bb86fc;
}

.project-btn:hover {
  background-color: #bb86fc; /* Purple background on hover */
  color: #121212; /* Dark text on hover */
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

.project-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.project-image {
    flex: 1 1 300px;
}

.project-content {
    flex: 2 1 400px;
}

.project-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-left: -4px;
}

ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

ul li {
    margin-bottom: 0.5rem;
}

.wip-title {
    text-align: center;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    color: white; /* Adjust color to match your theme */
}

.wip-images-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wip-images-container2 {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wip-image {
    width: 40%; /* Adjust this to make images smaller */
    max-width: 500px; /* Optional: sets maximum size */
}

.wip-image2 {
    width: 40%; /* Adjust this to make images smaller */
    max-width: 700px; /* Optional: sets maximum size */
}

.wip-img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: adds rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds subtle shadow */
}

.video-container {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.project-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border-color: #bb86fc;
  background-color: #1e1e1e;
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
  color: #e0e0e0;
}

.contact.icon {
  cursor: default;
  height: 2rem;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER */

footer {
  height: 26vh;
  background-color: #1e1e1e;
}

footer p {
  text-align: center;
  color: #e0e0e0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* optional: limit width */
    margin: 1rem auto;
    aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
