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

body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #f0f0f0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: #fff;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 110px;
  transition: transform 0.3s ease;
}

.logo-text {
  font-size: 1rem;
  letter-spacing: 0.4em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-link:hover .logo-text {
  opacity: 1;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  font-size: 1rem;
  text-transform: uppercase;
}

/* Smooth fade-in animation */
.page-content {
  padding-top: 120px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 40px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #222;
  aspect-ratio: 3 / 2; /* Wider landscape shape */
  transition: transform 0.4s ease;
}

.work-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.work-item:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Rollover overlay for project title */
.work-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.work-item:hover .work-info {
  transform: translateY(0);
}

.work-info h2 {
  font-size: 1.2rem;
  margin: 0;
  text-transform: ;
}

/* About and Contact Page */
.content {
  max-width: 900px;
  margin: auto;
  padding: 140px 20px 60px; /* extra top padding to avoid overlap */
  line-height: 1.6;
}
.project-page p:first-of-type {
    margin-bottom: 40px;
}
.project-page h3:first-of-type {
    margin-bottom: 20px;
}

/* Project Page Image Styling */
.project-page img {
  display: block;
  width: 100%;
  max-width: 900px;  /* You can adjust this max width as needed */
  margin: 0 auto 20px;
  border-radius: 4px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* Mobile Styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .logo img {
    width: 100px;
  }

  .content {
    padding: 140px 20px 40px;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* Project Detail Page Image Column */
.project-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.project-images img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 6px;
}
