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

body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  /* overflow: hidden; */
}

.background {
  background-image: url('your-background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
  filter: brightness(0.6) blur(2px);
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
  z-index: -1;
}

.home-content {
  position: relative;
  z-index: 1;
  padding: 50px;
  text-align: center;
}

.project-page-content {
  position: relative;
  z-index: 1;
  width: 80%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

.navbar {
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
}

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

/* Responsive for mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}

.hero-content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
}

.avatar {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  border: 3px solid white;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner {
    height: 200px;
  }

  .banner-image {
    content: url('assets/banner-mobile.jpg'); /* Optional alt banner */
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .hero-title {
    font-size: 1.1rem;
  }
}

/* Mobile navbar setup */
.mobile-navbar {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
  .mobile-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 99%);
    transition: all 0.3s ease;
  }

  .mobile-navbar.scrolled {
    background: rgba(60, 60, 60, 1);
    background: radial-gradient(circle at center, rgba(60,60,60,1), rgba(10,10,10,1), transparent 400%);
    justify-content: space-between;
    padding: 10px 20px;
  }

  .mobile-navbar .mini-avatar {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
  }

  .mobile-navbar.scrolled .mini-avatar {
    display: inline-block;
  }

  .hamburger {
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 21;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: rgba(10,10,10, 0.95);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 20px 20px;
    transition: right 0.3s ease;
    z-index: 19;
  }

  .mobile-menu.open {
    right: 0;
  }

  .mobile-menu nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: block;
  }

  .navbar {
    display: none; /* Hide full navbar on mobile */
  }
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}


@media (min-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.post-box {
  display: flex;
  flex-direction: row;
  border-radius: 15px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  height: auto;
  min-height: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.post-text {
  flex: 0 0 65%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.post-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.post-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.post-image {
  flex: 0 0 35%;
  background-size: cover;
  background-position: center right;
  position: relative;
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,0.5));
}


.post-description-wrapper {
  position: relative;
  transform: none !important;
  padding: 1.5rem;
  flex: 1;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.post-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.post-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
  .post-box {
    flex-direction: column;
  }

  .post-text, .post-image {
    flex: none;
    width: 100%;
  }

  .post-image {
    height: 200px;
  }

  .post-image::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.6));
  }
}

.responsive-img {
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
  height: auto;
  display: block;
}