/* Apple-like Transparent Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  z-index: 50;
}

#home {
  background-image: url('assets/bg.gif'); /* Replace with your image path */
  background-size: cover;         /* Fill the screen */
  background-position: center;    /* Center the image */
  background-repeat: no-repeat;   /* Prevent tiling */
  position: relative;             /* So we can overlay */
  color: white;                   /* White text for readability */
  min-height: 100vh;              /* Always at least full viewport height */
  width: 100vw;                   /* Full viewport width */
  box-sizing: border-box;         /* Prevent overflow on small screens */
  display: flex;                  /* Optional: center content vertically */
  align-items: center;            /* Optional: center content vertically */
  justify-content: center;        /* Optional: center content horizontally */
}

/* Responsive adjustments for very small screens */
@media (max-width: 600px) {
  #home {
    background-position: top center;
    min-height: 60vh;
    padding: 2rem 1rem;
  }
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text contrast */
  z-index: 1;
}

#home h2,
#home p {
  position: relative;
  z-index: 2; /* Bring text above overlay */
}


/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

/* Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-gallery img {
  width: 100%;
  height: 200px; /* Same height for all */
  object-fit: cover;
}

/* Image Gallery for Projects */
.image-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.image-gallery img {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: center;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.image-gallery img:hover {
  transform: scale(1.05);
}

/* Buttons */
.btn-primary {
  background: #3b82f6;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #2563eb;
}

.btn-green {
  background: #2563eb;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  transition: background 0.3s;
}
.btn-green:hover {
  background: #2563eb;
}

/* Inputs */
.input-field {
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  border-radius: 8px;
}
.dark .input-field {
  background: #1f2937;
  border-color: #374151;
}
