:root { --header-h: 72px; }

 /*body { padding-top: var(--header-h); }*/  

@font-face {
  font-family: 'Nexa Regular';
  src: url('../fonts/NexaBook.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Nexa Heavy';
  src: url('../fonts/Nexa-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Afacad';
  src: url('../fonts/afacad/Afacad-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Afacad';
  src: url('../fonts/afacad/Afacad-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'NOVA';
  src: url('../fonts/novaregular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Homey';
  src: url('../fonts/homey/Homey Feeling.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

.container {
  max-width: 1200px;    /* pick your site width */
  margin: 0 auto;       /* center the container as a whole */
  padding: 0 40px;      /* matches your content side spacing */
}

#menulogo{
  width: 70px;
  margin-top: -1px;
}

.nova {
  font-family: 'NOVA';
  font-size: 70px;
  letter-spacing: 3px;
}

.aboutme {
  margin: 40px auto;
  max-width: 1100px;
  
}

.todo {
  font-family: Afacad;
  margin: auto;
  
}


#content {
  max-width: 1200px;
  margin: 0 auto;   /* FIX */
  padding: 0 15px;
  font-family: Afacad;
  font-size: 20px;
}

p {
  font-family: 'Afacad';
  text-align: justify;

}

s {
  color: black;                  /* text color */
  text-decoration: line-through;
  text-decoration-color: red;    /* strikethrough line color */
  text-decoration-thickness: 2px;
  
}

.about-img {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  width: 300px;
  border-radius: 15px;
}


/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #111;
  color: #fff;
  padding: 0;           /* let .container handle side padding */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* logo left, nav/hamburger right */
  height: var(--header-h);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: 'Nexa Heavy', sans-serif;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-family: 'Afacad', sans-serif;
  font-size: 20px;
}

/* Hamburger (hidden on desktop by default) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3rem;
  transition: transform 0.3s ease;
  z-index: 1001; /* above curtain */
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Hamburger active → turn into X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Curtain menu container */
.curtain {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  transition: top 0.6s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.curtain.active {
  top: 0;
}

.curtain-menu {
  list-style: none;
  text-align: center;
}

/* Curtain Menu — hidden state */
.curtain-menu li {
  opacity: 0;
  transform: translateX(100%);
  margin: 1rem 0;
  transition: all 0.5s ease;
}

/* Curtain Menu — entering AFTER curtain is down */
.curtain.show-items .curtain-menu li {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--i) * 0.2s);
}

/* Curtain Menu — exiting (reverse order) */
.curtain.closing .curtain-menu li {
  opacity: 0;
  transform: translateX(100%);
  /* reverse order: multiply by a negative factor if needed */
  transition-delay: calc((var(--total) - var(--i)) * 0.2s);
}

.curtain-menu a {
  text-decoration: none;
  font-size: 1.5rem;
  color: #fff;
  font-weight: bold;
  font-family: 'Nexa Heavy', sans-serif;
}

/* Responsive: hide desktop nav and show hamburger */
/* Responsive: hide desktop nav and show hamburger */
@media (max-width: 768px) {

  nav { display: none; }

  .hamburger { display: flex; }

  .project-img {
    width: 100%;
  }

  .about-img {
    width: 180px;
  }

  .justify {
    text-align: justify;
  }

  .resume-container {
    grid-template-columns: 1fr;
  }

}






/* MENU HAMBURGER COLOURING*/

.curtain-menu li:nth-child(1) a {
  color: #E6F3F7; /* Replace with your hex code */
}

.curtain-menu li:nth-child(2) a {
  color: #CDE7EF;
}

.curtain-menu li:nth-child(3) a {
  color: #9BD0E0;
}

.curtain-menu li:nth-child(4) a {
  color: #6AB8D0;
}

.curtain-menu li:nth-child(5) a {
  color: #38A1C1;
}

.curtain-menu li:nth-child(6) a {
  color: #0689B1;
}

/* Hover effect */
.curtain-menu li a:hover {
  text-decoration: underline overline;
  text-decoration-thickness: 2px; /* optional, makes it bolder */
  text-underline-offset: 4px;     /* optional, moves underline away from text */
  cursor: pointer;
}

/** PORFOLIO PAGE **/

.project-card {
  /*max-width: 420px;*/
  margin: 0 auto;
  padding: 24px;
  text-align: center;

  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.project-image {
   width: 90%;        /* half the width of its container */
  height: auto;      /* keep aspect ratio */
  display: block;    /* lets margin auto center it */
  margin: 1rem auto; /* center + some breathing room */
  border-radius: 16px; /* curved edges */
}

/* Title */
.project-title {
  font-size: 1.55rem;
  font-weight: 600;
  color: #0f172a; /* Dark neutral */
  margin-bottom: 12px;
}

/* Summary */
.project-summary {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #475569; /* Muted slate */
  margin-bottom: 16px;
  margin-left: 50px;
  margin-right: 50px;
}

/* Role / Metadata */
.project-meta {
  text-align: center;
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb; /* Accent blue */
}

.project-link {
  text-decoration: none;
  color: inherit;
}

/** FADE IN **/

/* Initial hidden state */
.fade-in {
  opacity: 0;
  transform: translateY(100px); /* slide up effect */
  transition: opacity 2.0s ease, transform 1.0s ease;
}

/* When visible */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}


/*ABOUT ME PAGE */

.about-me {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.aboutmeimg {
  width: 350px;
  /*aspect-ratio: 1 / 1;
  border-radius: 50%;*/
  border-radius: 40px;
  object-fit: cover;
  margin-top: 30px;
}

.intro {
  font-family: Homey;
  font-size: 48px;
  line-height: 1.6;
}

.wave {
  display: inline-block;
  vertical-align: -0.2em;
  margin-top: -20px;
  margin-left: 10px;
}

.emoji {
  font-size: 0.75em;        /* relative to root/body, not intro */
  line-height: 1;
  vertical-align: middle;
}

.project-image2 {
  border: 2px solid rgba(21, 71, 142, 0.2); /* Adjust thickness and color */
  border-radius: 8px;         /* Optional: rounded corners */
  padding: 2px;               /* Optional: space between image and border */
}

.comment {
  background-color: #f0e516;
  padding-left: 15px;
  border-radius: 10px;
  display: none;
}

/* MENU */

.nav-links a {
  position: relative;
  text-decoration: none;
  padding: 5px 0;
  opacity: 1.0;               /* slightly faded */
  transform-origin: center;
  transition: color 0.9s ease, opacity 0.6s ease, font-weight 0.3s ease;
}

.nav-links a.active {
  font-weight: bold;
  color: #0ba8ec;
  opacity: 1;
}

/* both lines */
.nav-links a::before,
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #fff; /* adjust color */
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.8s ease;
}

/* overline */
.nav-links a::before {
  top: 0;
}

/* underline */
.nav-links a::after {
  bottom: 0;
}

/* hover animation */
.nav-links a:hover::before,
.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

