/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #5a4237; /* Matte black background */
  color: #ffffff; /* White text by default */
  line-height: 1.6;
}

/* Navigation Bar */
nav {
  background-color: #5a4237; /* Matte black */
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #c2b29d; /* Gold */
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffffff; /* White on hover */
}

/* Hero Section */
.hero {
  background: linear-gradient( #7a8060, #5a4237);
  padding: 6rem 2rem;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 1rem auto 2rem auto;
  color: #c2b29d;
}

.resume-btn {
  background-color: #c2b29d; /* Gold */
  color: #5a4237; /* Matte black */
  padding: 1rem 3rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(241, 196, 15, 0.4);
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background-color: #ffffff;
  color: #121212;
  box-shadow: 0 6px 15px rgba(241, 196, 15, 0.6);
}

/* Section Headers */
.section h2 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 3rem;
  color: #7a8060; /* Gold */
  margin-bottom: 3rem;
}

/* About Me Section */
#about {
  background-color: #c2b29d; /* Gold background */
  color: #121212; /* Matte black text */
  padding: 5rem 2rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #121212;
}

/* Work Experience Section */
#experience {
  background-color: #ffffff; /* White background */
  color: #333; /* Dark text */
  padding: 5rem 2rem;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #5a4237; /* Gold */
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #5a4237; /* Gold */
  border: 4px solid #ffffff; /* White */
  border-radius: 50%;
  top: 20px;
  right: -10px;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  background-color: #f9f9f9; /* Light grey */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  font-weight: bold;
  color: #7a8060; /* Gold */
  margin-bottom: 10px;
}

.timeline-content .short-description {
  display: block;
}

.timeline-content .full-description {
  display: none;
}

.timeline-item.expanded .short-description {
  display: none;
}

.timeline-item.expanded .full-description {
  display: block;
}

.expand-btn {
  background-color: #c2b29d; /* Gold */
  color: #5a4237; /* Matte black */
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.expand-btn:hover {
  background-color: #121212;
  color: #f1c40f;
}

/* Projects Section */
#projects {
  background-color: #5a4237; /* Matte black */
  color: #ffffff; /* White text */
  padding: 5rem 2rem;
}

.projects-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: #1e1e1e; /* Dark grey */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.project-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #f1c40f; /* Gold */
}

.project-header p {
  color: #dcdcdc; /* Light grey */
}

/* Case Studies Section */
#case-studies {
  background-color: #1a1a1a; /* Darker matte black */
  color: #ffffff; /* White text */
  padding: 5rem 2rem;
}

.case-studies-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.case-study-card {
  background-color: #2a2a2a; /* Dark grey */
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-5px);
}

.case-study-content iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.case-study-btn {
  background-color: #f1c40f; /* Gold */
  color: #121212; /* Matte black */
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.case-study-btn:hover {
  background-color: #ffffff;
  color: #121212;
  transform: scale(1.05);
}

/* Image Gallery */
.image-gallery {
  margin-top: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  background-color: #2a2a2a; /* Dark grey */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.image-description {
  padding: 1rem;
  background-color: #333; /* Slightly lighter grey */
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

#modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ffffff;
  padding: 10px 0;
  font-size: 1.2rem;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1c40f;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #ffffff;
}

/* Contact Section */
#contact {
  background-color: #c2b29d; /* Gold background */
  color: #121212; /* Matte black text */
  padding: 5rem 2rem;
}

.contact-content form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-content input,
.contact-content textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-content button {
  background-color: #121212;
  color: #f1c40f; /* Gold */
  padding: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-content button:hover {
  background-color: #f1c40f;
  color: #121212;
  transform: translateY(-5px);
}

/* Footer */
footer {
  background-color: #7a8060; /* Dark matte black */
  color: #f1c40f; /* Gold text */
  padding: 2rem 1rem;
  text-align: center;
}

.social-links a {
  color: #f1c40f;
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #ffffff; /* White on hover */
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slideshow Container */
.slideshow-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Slides */
.slide {
  display: none;
  text-align: center;
}

.slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.slide.active {
  display: block;
}

/* Slideshow Links */
.slideshow-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #c2b29d;
  color: #5a4237;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.slideshow-link:hover {
  background-color: #121212;
  color: #f1c40f;
}

/* Navigation Arrows */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: #f1c40f;
  font-weight: bold;
  font-size: 24px;
  transition: color 0.3s ease;
  user-select: none;
}

.prev:hover, .next:hover {
  color: #ffffff;
}

.next {
  right: 0;
}