body {
  font-family: Arial, sans-serif;

  margin: 0;
  padding: 0;
  color: #4b0000;
  text-align: center;
  overflow-x: hidden;
}

/* ---------- Navigation ---------- */
 nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 10%;
    
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 100;
    }

nav img.logo {
  height: 150px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #4b0000;
  font-size: 1.3rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #d48400;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 10px 10%;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  font-size: 2.2rem;
  color: #4b0000;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.7rem;
  color: #d48400;
  max-width: 700px;
  margin: 2% auto;
}

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

/* ---------- Horizontal Gallery ---------- */
.gallery-container {
  overflow-x: hidden;
  white-space: nowrap;
  padding: 20px 0;
  margin: 30px 5%;
  position: relative;
}

.gallery {
  display: inline-flex;
  gap: 20px;
  animation: autoScroll 20s linear infinite alternate;
}

@keyframes autoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery img {
  width: 350px;
  height: 250px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* ---------- Popup Overlay ---------- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
}

.popup-overlay.active {
  display: flex;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-overlay img {
  width: 50vw;
  height: auto;
  max-height: 70vh;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  opacity: 0;
  transform: scale(0.8) translateY(30px);
  transition: all 1s ease;
}

.popup-overlay.active img {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ---------- Fade Between Images ---------- */
.fade-out {
  opacity: 0 !important;
  transform: scale(0.95) !important;
  transition: all 1s ease;
}

/* ---------- Navigation Arrows ---------- */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #d48400;
  cursor: pointer;
  user-select: none;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  padding: 10px 15px;
  transition: background 0.3s;
  z-index: 1010;
}

.arrow:hover {
  background: rgba(0,0,0,0.6);
}

.arrow.left { left: 5%; }
.arrow.right { right: 5%; }

/* ---------- Footer (no fixed text color + hover effect) ---------- */

footer {
  text-align: center;
  padding: 60px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #4b0000;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.linkedin-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.linkedin-link:hover .linkedin-icon {
  transform: translateY(-3px) scale(1.1);
  fill: #0077b5; /* LinkedIn blue on hover */
}



/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  nav img.logo { height: 70px; }
  .hero h1 { font-size: 1.6rem; }
  .gallery img { width: 280px; height: 200px; }
  .popup-overlay img { width: 80vw; }
  .arrow { font-size: 2rem; padding: 8px 12px; }
}
