/* ===== GENERAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #e5e5e5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== NAVIGATION (Upgraded) ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #16590a, #228B22, #16590a);
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo a {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  color: #f4f4f4;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover underline effect */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #e5e5e5; /* Gold highlight */
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #e5e5e5;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background: #1a6b1a;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 0;
  }
}


/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: white;
  height: 450px;
  background: url('images/StockSnap_5DH8SUP3AF.jpg') no-repeat center center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* dark overlay for contrast */
  z-index: 1;
}

.hero-left,
.hero-right {
  flex: 1;
  position: relative;
  z-index: 2; /* above overlay */
}

.profile-pic {
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
}

.hero-right {
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

.hero .cta {
  margin-top: 2rem;
}

.hero .cta a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  background: #02792c;
  color: white;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.hero .cta a:hover {
  background: #108414;
}

/* Responsive layout */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    height: auto;
  }

  .profile-pic {
    max-width: 200px;
  }

  .hero-right {
    text-align: center;
    padding: 1.5rem;
  }
}


/* ===== PREVIEW SECTIONS ===== */
.preview {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.preview h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.preview p {
  color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #222;
    padding: 1rem;
    width: 200px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* ===== ABOUT ME SECTION STYLES ===== */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  animation: fadeInUp 0.6s ease-out both;
}

.about-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #222;
  font-weight: 700;
  letter-spacing: -0.5px;
  border-bottom: 2px solid #228B22;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.5rem;
}

/* Optional: Slightly emphasize first paragraph */
.about-section p:first-of-type {
  font-size: 1.15rem;
  color: #222;
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make it responsive */
@media (max-width: 768px) {
  .about-section {
    padding: 2rem 1rem;
  }
  .about-section h1 {
    font-size: 2rem;
  }
  .about-section p {
    font-size: 1rem;
  }
}

/* ===== PORTFOLIO SECTION ===== */
main h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #000;
  font-weight: 700;
  border-bottom: 2px solid #228B22;
}

main p {
  margin-bottom: 2rem;
  color: #555;
  max-width: 700px;
}

/* Container for all projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

/* Each project card */
.project {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.project h3 {
  font-size: 1.25rem;
  color: #222;
  margin: 1rem;
}

.project p {
  font-size: 1rem;
  color: #555;
  margin: 0 1rem 1.5rem;
  line-height: 1.4;
}

/* ===== Resume Page Styles ===== */

.resume-container iframe,
.resume-container embed {
    display: block;
    width: 750px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.resume-header {
    text-align: center;
    border-bottom: 2px solid #228B22;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.resume-section {
    margin-bottom: 30px;
    justify-content: center;
    text-align: center;
}

.resume-section h2 {
    font-size: 1.5rem;
    color: #228B22;
    margin-bottom: 10px;
    border-bottom: 1px solid #228B22;
    padding-bottom: 5px;
}

.resume-item {
    margin-bottom: 15px;
}

.resume-item h3 {
    font-size: 1.2rem;
    color: #333;
}

.resume-item p {
    margin: 5px 0;
    color: #555;
}

h2 {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 10px;
  padding: 15px;
  border-bottom: 2px solid #228B22;
}

/* ===== Resume Experience Section ===== */
.experience-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    margin-left: 100px;
    margin-right: 100px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.experience-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
}

.experience-date {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 8px;
}

.experience-item p {
    line-height: 1.6;
    color: #555;
    
}

.experience-text {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-right: 100px;
  margin-left: 100px;
}

/* ===== Skills Section ===== */
.skills-category {
    margin: 30px 100px;
}

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #222;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.skills-grid div {
    background: #f5f9fa;
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
    color: #333;
    transition: background 0.2s ease, transform 0.2s ease;
}

.skills-grid div:hover {
    background: #228B22;
    color: white;
    transform: translateY(-3px);
    cursor: default;
}


/* Work history header (logo + text side by side) */
.experience-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

/* Company logos */
.company-logo {
  width: 100px;   /* adjust to make them small */
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px; /* optional: rounded corners */
}



/* ===== SERVICES PAGE ===== */
.services {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #222;
  font-weight: bold;
}

.services p.intro {
  font-size: 1.1rem;
  max-width: 750px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
  color: #000;
}

/* Grid layout for services */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Service Card */
.service {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 4px solid #228B22;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.services-title {
  border-bottom: 2px solid #228B22; /* forest green line */
  padding-bottom: 0.5rem;
}

/* Service Heading */
.service h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #228B22;
  font-weight: 600;
}

/* Service Description */
.service p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Optional button (if you add links later) */
.service a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #228B22;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.service a:hover {
  background: #1a6b1a;
}



/* ===== Other Interests Page Styles ===== */
/* Container for each interest */
.interests-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

/* Each section: image + text box */
.interest-section {
    margin-bottom: 50px;
}

/* Large, centered photos */
.interest-photo {
    width: 80%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Text box separate from photo */
.interest-item {
    background: #fff;
    border-radius: 12px;
    padding: 35px 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: inline-block;
    max-width: 800px;
    margin: auto;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.interest-item h3 {
    color: #228B22;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.interest-item p {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .interest-photo {
        width: 90%;
    }

    .interest-item {
        padding: 25px 15px;
    }
}



/* ===== Contact Page Styles ===== */
.contact-container {
    max-width: 700px;
    margin: 40px auto; /* centers and adds vertical space */
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center; /* ensures inline content is centered */
}

.contact-header h1 {
    color: #228B22;
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center; /* center the form fields horizontally */
}

.contact-form label {
    align-self: flex-start; /* keep labels aligned to the left within form */
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.contact-form button {
    padding: 12px 20px;
    background: #228B22;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #228B22;
}



/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 480px) {
  .projects, .services-list {
    grid-template-columns: 1fr;
  }
  #resume-viewer iframe {
    height: 400px;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #222;      /* dark background */
  color: #fff;           /* white text */
  text-align: center;    /* center align text */
  padding: 1.5rem 1rem;  /* spacing */
  margin-top: 2rem;      /* space above footer */
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff; 
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #228B22;  /* highlight color on hover */
}



/* Portfolio Sub Pages */
/* Container stays wide and centered */
.portfolio-detail {
  max-width: 1500px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Let children stretch full width (default), keep the gap */
.project-detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* remove align-items:center to avoid shrinking width */
  /* text-align:center is fine if you want centered text */
  text-align: center;
}

/* Make the media row fill the container, then center the iframe inside it */
.project-media {
  width: 100%;
  display: flex;
  justify-content: center; /* centers the iframe horizontally */
}

/* Make the PDF nice and wide but responsive */
.project-media iframe {
  width: 100%;
  max-width: 1200px;  /* grow wider than before */
  height: 700px;      /* taller for readability */
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
  
/* Optional: keep the text from getting too wide */
.project-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .project-media iframe {
    height: 500px;
    max-width: 100%;
  }
}


/* ===== GALLERY PAGE ===== */
.gallery-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
}

.gallery-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #222;
  font-weight: bold;
  border-bottom: 3px solid #228B22;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Grid for gallery images */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Each image card */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover effect */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .gallery-container h1 {
    font-size: 2rem;
  }
}
