html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  font-family: 'Inconsolata', monospace;
  background-color: black;
  color: rgb(255, 255, 255);
}

/*    global custom text highlight  */
::selection{
    color: rgb(255, 255, 255);
    background: rgb(148, 132, 94);
}

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

/*    reveal animation section   */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* Navbar  */
nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      backdrop-filter: blur(14px);
      background: rgba(0, 0, 0, 0.123);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      z-index: 1000;
      max-width: 100vw;
      box-sizing: border-box;
}

nav a{
      text-decoration: none;
      color: #ffffff;
      font-size: 1rem;
      font-weight: 400;
}

.nav-links {
      display: flex;
      gap: 1rem;
}
.nav-links.active {
      z-index: 10;
      width: 100%;
      backdrop-filter: blur(25px);
      max-height: 500px; /* Adjust based on content height */
      display: flex;
      opacity: 1;
      align-items: center;
      align-content: center;
      flex-direction: column;
      position: absolute;
      top: 50px; /* Adjust based on navbar height */
      right: 0;
      background-color: rgba(0, 0, 0, 0.132);
      padding: 1rem;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3); /* optional tint */
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* When active */
.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav-links a {
      text-decoration: none;
      color: #ffffff;
      font-weight: 400;
      transition: color 0.2s;
}

.nav-links a:hover {
      color: #ffbd2e;
}

.hamburger {
      display: flex; /* show it */
      flex-direction: column;
      cursor: pointer;
      height: fit-content;
      z-index: 1010;
}

.hamburger span {
      height: 3px;
      width: 20px;
      background: #ffffffca;
      margin: 3px 0px;
      border-radius: 3px;
      transition: 0.3s;
}

/* hero */
.hero {
   max-width: 100vw;
   margin: 0;
   padding: 0 2rem;
   text-align: center;  
}
.content .hero{
     background-image: url('../images/bg.jpg');
     background-repeat: no-repeat;
     background-size: cover;
     background-position: center;
    background-color: rgba(0, 0, 0, 0.2);
    background-blend-mode: darken;
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.6;
  font-weight: 500;
  color: rgb(255, 255, 255);
  margin-bottom: 1rem;
}

.hero-title .highlight {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  color: rgb(255, 255, 255);
}

.hero-intro {
  font-size: 1rem;
  font-weight: 500;
  line-height: 0.9;
  color: rgb(255, 255, 255);
  max-width: 700px;
  margin: 0 auto;
}

/*      content section     */
.work-intro {
  text-align: left;
  margin: 3rem 4rem;
  padding-top: 3rem;
}

/*      my work carousel     */
.carousel {
  display: flex;
  gap: 20px;
  padding: 40px 60px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}
.carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
.carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.carousel {
  cursor: grab;
  scroll-behavior: smooth;
  overflow-x: auto;
}


.carousel-container {
      width: 100%;
      max-width: 1500px;
      overflow: hidden;
      position: relative;
}

.blur-left,
.blur-right {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 90px;
      pointer-events: none;
      z-index: 2;
}

.blur-left {
      left: 0;
      background: linear-gradient(to right, rgb(0, 0, 0, 0.8), rgba(255,255,255,0));
}

.blur-right {
      right: 0;
      background: linear-gradient(to left, rgb(0, 0, 0, 0.8), rgba(255,255,255,0));
}

.carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

.carousel, .carousel * {
  user-select: none;
  -webkit-user-drag: none;
}

img.lazyload {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img:not(.lazyload) {
  opacity: 1;
}

.card {
      flex: 0 0 auto;
      width: 400px;
      height: 210px;
      border-radius: 8px;
      overflow: hidden;
      background: #000000;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      position: relative;
}

.card:hover {
      transform: scale(1.04);
      box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 0;
}

.card-content {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 10px 20px;
      background: rgba(0, 0, 0, 0.478);
      backdrop-filter: blur(15px);
      z-index: 1;
}

.card-title {
      font-family: 'Courier New', Courier, monospace;
      font-size: 0.9rem;
      font-weight: 500;
      margin-top: 3px;
      margin-bottom: 3px;
      color: #ffa81d;
}

.card-description {
      font-size: 0.8rem;
      color: #ffffff;
      font-family: 'Courier New', Courier, monospace;
}


/*        footer section        */
.footer {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-align: center;
  font-size: 0.7em;
  font-weight: 500;
  overflow: hidden;
  z-index: 0;
  background-image: url('../images/baloonscrop.webp');
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: darken;
  backdrop-filter: blur(10px);
}

.footer a{ 
    text-decoration: none;
    color: #ececec;
    line-height: 1.5;
    margin: 0em 0.5em;
}

.footer a:hover{
        color: #ffbc2b;
}
.footer p {
  margin: 0.5em 0;
}


/*       Mobile Styles        */
@media (max-width: 768px) {
.nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        width: 200px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding: 1rem;
}

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

.hamburger {
        display: flex;
}
.hero-title {
         font-size: 1.5rem;
         line-height: 1.2;
}
.hero-title .highlight {
        padding: 1rem 0rem;
        font-weight: 400;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.55);
}
    
.hero-intro {
        font-size: 0.9rem;
        line-height: 1.2;
}
.carousel {
    padding: 20px;
  }
.card {
        width: 250px;
        height: 250px;
}

.card-title {
        font-size: 16px;
}

.card-description {
        font-size: 13px;
} 
}