:root{
    --bg:#4f4d62;
    --text:#d7d6e6;
    --muted:#bdbbd2;
    --accent:#f07a2b;
  }
  
  *{ box-sizing:border-box; }
  
  html{ scroll-behavior:smooth; }
  
  body{
    margin:0;
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
  }
  
  /* top nav */
header{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding: 26px 44px 0;
}


  nav a{
    color: var(--text);
    text-decoration:none;
    margin-left: 26px;
    font-weight: 600;
    font-size: 15px;
    opacity:.95;
  }
  
  nav a:hover{
    opacity:1;
    text-decoration:underline;
    text-underline-offset:6px;
  }
  
  /* active link */
  nav a.active{
    text-decoration: underline;
    text-underline-offset: 6px;
    opacity: 1;
  }
  

  .navbar{
    background: var(--bg);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 26px 44px 0;
  }
  
  .nav-left{
    display:flex;
    align-items:center;
  }
  
  .nav-logo{
    height: 40px;
    width: auto;
  }
  
  .nav-right a{
    color: var(--text);
    text-decoration:none;
    margin-left: 26px;
    font-weight: 600;
    font-size: 15px;
    opacity:.95;
  }
  
  .nav-right a:hover{
    opacity:1;
    text-decoration:underline;
    text-underline-offset:6px;
  }
  
  .nav-right a.active{
    text-decoration:underline;
    text-underline-offset:6px;
    opacity:1;
  }

  /* page layout wrappers */
  .page{
    min-height:92vh;
    display:flex;
    flex-direction:column;
    padding: 0 44px 22px;
    gap: 18px;
  }
  
  /* HOME hero */
  .hero{
    flex:1;
    display:grid;
    grid-template-columns: 320px 1fr;
    align-items:center;
    gap: 40px;
    padding: 10px 10px 0;
  }
  
  .logoWrap{
    display:flex;
    align-items:center;
    justify-content:center;
    height: 360px;
  }
  
  .logo{
    max-width: 480px;
    width: 60%;
    height: auto;
  }
  
.logoWrap img {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE 10+ */
  user-select: none;         /* Standard */
  pointer-events: none;      /* Disables right-click, dragging, clicks */
}


  .content h1{
    margin:0;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: .2px;
    font-weight: 800;
  }
  
  .content h2{
    margin: 12px 0 14px;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: .2px;
    font-weight: 800;
    color: var(--accent);
  }
  
  .content p{
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .2px;
  }
  
  .btn{
    display:inline-block;
    padding: 12px 26px;
    background: var(--accent);
    color: white;
    text-decoration:none;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    transition: transform .12s ease, filter .12s ease;
  }
  
  .btn:hover{
    transform: translateY(-1px);
    filter: brightness(1.02);
  }
  
  /* footer socials */
  footer{
    display:flex;
    justify-content:center;
    gap: 42px;
    padding: 14px 0 6px;
    color: var(--muted);
    font-size: 15px;
  }
  
  footer a{
    color: var(--muted);
    text-decoration:none;
  }
  footer a:hover{ color: var(--text); }
  
  /* LIGHT “PAGE” (About/Projects/Contact) */
  .light-page{
    background: #f3f3f7;
    color: #4b4a5a;
    min-height: calc(100vh - 92px);
    margin-top: 26px;
    border-radius: 0; /* keep flat like screenshot */
  }
  
  .light-inner{
    max-width: 980px;
    margin: 0 auto;
    padding: 70px 24px 90px;
  }
  
  .light-inner h1{
    margin: 0 0 30px;
    text-align:center;
    font-size: 34px;
    font-weight: 800;
    color:#4b4a5a;
  }
  
  .light-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  
  .light-grid p{
    margin:0;
    font-size:18px;
    line-height:1.7;
    color:#6b6a7a;
  }
  
  /* responsive */
  @media (max-width: 900px){
    header{ justify-content:center; padding: 20px 18px 0; }
    .page{ padding: 0 18px 18px; }
  
    .hero{
      grid-template-columns: 1fr;
      text-align:center;
      gap: 18px;
    }
  
    nav a{ margin: 0 12px; }
  
    .content h1, .content h2{ font-size: 44px; }
    .logoWrap{ height:auto; }
  
    .light-grid{ grid-template-columns: 1fr; }
    .light-inner{ padding: 50px 18px 70px; }
  }

  



  /* ABOUT PAGE (new layout like screenshot) */

.about-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 60px;
}

.about-title{
  margin: 0 0 55px;
  font-size: 52px;
  font-weight: 800;
  color: #4b4a5a;
  letter-spacing: .2px;
}


.about-title1{
  margin: 0 0 55px;
  font-size: 42px;
  font-weight: 800;
  color: #4b4a5a;
  letter-spacing: .2px;
}

.about-title1 span{
  color: var(--accent);
}

.about-title span{
  color: var(--accent);
}

.about-columns{
  display: grid;
  grid-template-columns: 0.75fr ;
  gap: 0px;
  align-items: start;
  max-width: 1080px;   /* before it was 980 */      /* keeps columns closer like screenshot */
  margin: 0 auto;
}

.about-columns p{
  margin: 0;
  font-size: 18px;
  line-height: 1.9;
  color: #6b6a7a;
  text-align: justify;      /* ✅ justify text */
  text-justify: inter-word; /* better justify spacing */
}

/* responsive */
@media (max-width: 900px){
  .about-wrap{
    padding: 60px 25px;
  }
  .about-title{
    font-size: 38px;
    margin-bottom: 30px;
  }
  .about-columns{
    grid-template-columns: 1fr;
    gap: 30px;
  }
}






/* Publications page */

.pub-columns{
  display: flex;
  justify-content: space-between;
  gap: 120px;
  align-items: flex-start;
}

.pub-col{
  flex: 1;
}

.pub-heading{
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 18px;
}

.pub-list{
  margin: 0;
  padding-left: 20px; /* indentation for bullets */
}

.pub-list li{
  margin: 10px 0;
  text-align: justify;      /* ✅ justify text */
  text-justify: inter-word; /* better justify spacing */
}

.pub-list li::marker {
  color: var(--accent);
}

/* Mobile responsiveness */
@media (max-width: 900px){
  .pub-columns{
    flex-direction: column;
    gap: 40px;
  }
}




/* PROJECTS PAGE */
.projects-page{
  background: #f3f3f7;
  min-height: calc(100vh - 90px);
}

.projects-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 60px 90px;
}

.page-title{
  margin: 0 0 50px;
  font-size: 56px;
  font-weight: 800;
  color: #4b4a5a;
}

.page-title .dot{
  color: var(--accent);
}

/* grid of cards */
.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

/* clickable card */
.project-card{
  position: relative;
  display:block;
  height: 240px;
  border-radius: 28px;
  overflow:hidden;
  background: #e6e6ea;
  text-decoration:none;
}

/* main image area (use background-image) */
.project-card .thumb{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  filter: saturate(1);
  transform: scale(1);
  transition: transform .25s ease;
}

/* number label */
.project-card .num{
  position:absolute;
  top: 18px;
  left: 22px;
  font-size: 34px;
  font-weight: 800;
  color: #4b4a5a;
  opacity: .9;
  z-index: 3;
}

/* hover overlay */
.project-card .overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 18px 18px 16px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.744), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2;
}

/* tags row */
.project-card .tags{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 5px;
}

.project-card .tag{
  font-size: 10px;
  font-weight: 700;
  color: rgb(255, 255, 255);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  
}

/* title row + arrow */
.project-card .meta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
}

.project-card .title{
  margin:0;
  font-size: 18px;
  font-weight: 700;
  color: #4b4a5a;
  letter-spacing: .2px;
}

.project-card .arrow{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

/* interactions */
.project-card:hover .overlay{
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover .thumb{
  transform: scale(1.03);
}
.project-card:focus-visible{
  outline: 3px solid rgba(240,122,43,.45);
  outline-offset: 4px;
}

/* responsive */
@media (max-width: 1100px){
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
  .projects-wrap{ padding: 60px 20px; }
  .projects-grid{ grid-template-columns: 1fr; }
  .page-title{ font-size: 42px; }
}



/* PROJECT DETAIL PAGE */
.project-page{
  background: #f3f3f7;
  min-height: calc(100vh - 90px);
}

.project-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 60px;
}

.project-title{
  font-size: 56px;
  font-weight: 800;
  color: #4b4a5a;
  margin: 0 0 60px;
}

.project-title span{
  color: var(--accent);
}

/* Concept section */
.project-concept{
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark{
  font-family: GFS Didot;
  font-size: 500px;
  color: rgba(240,122,43,.15);
  position: absolute;
  top: -170px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  font-weight: 800;
}

.concept-text{
  position: relative;
  z-index: 2;
}

.concept-text p{
  font-size: 18px;
  line-height: 1.9;
  color: #6b6a7a;
  margin-bottom: 24px;
  text-align: center;
}

/* Divider */
.project-divider{
  width: 300px;
  height: 2px;
  background: rgba(240,122,43,.4);
  margin: 70px auto 60px;
}

/* Images */
.project-images{
  display: grid;
  gap: 40px;
}

.project-images img{
  width: 100%;
  border-radius: 24px;
  display: block;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE 10+ */
  user-select: none;         /* Standard */
  pointer-events: none;      /* Disables right-click, dragging, clicks */
}

/* Responsive */
@media (max-width: 900px){
  .project-wrap{
    padding: 60px 20px;
  }
  .project-title{
    font-size: 40px;
  }
  .quote-mark{
    font-size: 120px;
    top: -50px;
  }
}



/* Bottom Back Section */
.project-footer{
  display:flex;
  justify-content:flex-end;
  margin-top: 20px;
}

/* Back link styling */
.back-link{
  font-size: 16px;
  font-weight: 600;
  color: #6b6a7a;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color .2s ease;
}

.back-link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: .6;
  transition: opacity .2s ease;
}

.back-link:hover{
  color: var(--accent);
}

.back-link:hover::after{
  opacity: 1;
}


/* MOBILE NAV – same row as logo, wrapping links */
@media (max-width: 700px){

  .navbar{
    padding: 18px 18px 0;
    align-items: center;
  }

  .nav-logo{
    height: 42px;
  }

  .nav-right{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;   /* vertical gap / horizontal gap */
    max-width: 75%;  /* prevents it pushing logo */
  }

  .nav-right a{
    margin-left: 0;      /* remove desktop spacing */
    font-size: 14px;
    padding: 4px 0;
    white-space: nowrap; /* keeps “About me” on one piece */
  }
}
