/* ============================ */
/* Base Styles */
/* ============================ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #FFF5E1, #F7E7CE);
  margin: 0;
  padding: 0;
  color: #5C3A21;
  scroll-behavior: smooth;
}

/* ============================ */
/* Navigation Bar */
/* ============================ */
nav {
  position: sticky;
  top: 0;
  background-color: rgba(255, 245, 225, 0.95);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(183, 65, 62, 0.25);
  padding: 1rem 0;
  border-bottom: 2px solid #D4AF37;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav ul li a {
  color: #B7413E;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background-color: #D4AF37;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #D4AF37;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ============================ */
/* Container */
.container {
  max-width: 960px;
  margin: 3rem auto;
  background: rgba(255, 245, 225, 0.95);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(183, 65, 62, 0.2);
  border: 1px solid #D4AF37;
  backdrop-filter: blur(10px);
}

/* ============================ */
/* Headings */
h1, h2 {
  color: #B7413E;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(212, 175, 55, 0.1);
}

h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2rem;
}

h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

section {
  margin-bottom: 4rem;
  scroll-margin-top: 80px;
}

/* ============================ */
/* Paragraphs */
p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.highlight {
  color: #D4AF37;
  font-weight: 700;
}

/* ============================ */
/* Buttons */
.button-link {
  display: inline-block;
  padding: 12px 28px;
  background-color: #B7413E;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px rgba(183, 65, 62, 0.25);
  transition: all 0.3s ease;
}

.button-link:hover {
  background-color: #D4AF37;
  color: #5C3A21;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
  border-color: #D4AF37;
}

.button-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
}

/* ============================ */
/* Profile Image */
.profile-pic {
  display: block;
  margin: 3rem auto;
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #B7413E;
  box-shadow: 0 8px 24px rgba(183, 65, 62, 0.4);
}

/* ============================ */
/* Blog Section */
.blog-post {
  background: rgba(255, 245, 225, 0.95);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 6px solid #B7413E;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(183, 65, 62, 0.15);
}

/* ============================ */
/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(255, 245, 225, 0.95);
  padding-bottom: 3rem;
  box-shadow: 0 8px 20px rgba(183, 65, 62, 0.2);
}

.slide-0, .slide-1 {
  display: none;
  text-align: center;
  position: relative;
}

.slide-0 img, .slide-1 img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(183, 65, 62, 0.3);
}

.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(212, 175, 55, 0.9);
  color: #5C3A21;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.prev, .next {
  position: absolute;
  top: 45%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
  background-color: rgba(183, 65, 62, 0.8);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.prev:hover, .next:hover {
  background-color: #D4AF37;
  color: #5C3A21;
}

.next { right: 12px; }
.prev { left: 12px; }

/* ============================ */
/* Contact Section */
#contact {
  text-align: center;
  margin-bottom: 4rem;
}

#contact h2 {
  color: #B7413E;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0.6rem auto;
}

.contact-info a {
  color: #B7413E;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #D4AF37;
  text-decoration: underline;
}

/* ============================ */
/* Resume Section - Nested Lists */
#resume ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

#resume ul ul {
  list-style-type: circle;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

#resume li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

#resume strong {
  color: #B7413E;
}

#resume ul ul li {
  font-weight: 500;
}

/* ============================ */
/* Certifications & Awards Cards */
#certifications-awards {
  margin-top: 4rem;
}

#certifications-awards h2 {
  text-align: center;
  color: #B7413E;
  margin-bottom: 2rem;
}

.certifications-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 245, 225, 0.95);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(183, 65, 62, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
}

.item img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.item-text h4 {
  margin: 0.5em 0 0.25em;
  color: #B7413E;
  font-size: 1.3em;
}

.item-text p {
  margin: 0;
  font-size: 1rem;
  color: #5C3A21;
}

/* ============================ */
/* Projects Section Cards */
.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 1.5rem 0;
}

.project-card-link .project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #B7413E;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 14px rgba(183, 65, 62, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.project-card-link .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
  border-color: #D4AF37;
}

.project-card .project-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  object-fit: cover;
}

.project-card .project-text {
  text-align: center;
}

.project-card .project-text h3 {
  margin: 0.5em 0 0.25em;
  color: #B7413E;
}

.project-card .project-text p {
  margin: 0;
  font-size: 1rem;
  color: #5C3A21;
}

/* ============================ */
/* Responsive Images */
@media (max-width: 900px) {
  .item img, .project-card .project-image {
    max-width: 450px;
  }
}

@media (max-width: 500px) {
  .item img, .project-card .project-image {
    max-width: 300px;
  }
}
