:root {
  --bs-primary: #1b4332;
  --bs-secondary: #0d2818;
  --bs-body-bg: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
  background-color: #f5f5f5;
}

/* Bootstrap customizations */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css');

.bg-primary {
  background-color: #1b4332 !important;
}

.bg-secondary {
  background-color: #0d2818 !important;
}

.text-primary {
  color: #1b4332 !important;
}

.btn-primary {
  background-color: #1b4332;
  border-color: #1b4332;
}

.btn-primary:hover {
  background-color: #0d2818;
  border-color: #0d2818;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar {
  background-color: #0d2818 !important;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
  color: #52b788 !important;
}

/* Masthead Section */
.masthead {
  background: linear-gradient(135deg, #1b4332 0%, #0d2818 100%);
  padding: 12rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.masthead-avatar {
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.masthead-heading {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.masthead-subheading {
  font-size: 1.5rem;
  font-style: italic;
  color: #52b788;
}

/* Divider customizations */
.divider-custom {
  margin: 1.25rem 0 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.divider-custom-line {
  width: 100%;
  max-width: 100px;
  height: 3px;
  background-color: #1b4332;
}

.divider-custom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  background-color: #1b4332;
  color: white;
  font-size: 1.5rem;
  margin: 0 -1.5rem;
}

.divider-light .divider-custom-line {
  background-color: white;
}

.divider-light .divider-custom-icon {
  background-color: white;
  color: #1b4332;
}

/* Portfolio section */
.portfolio {
  padding: 6rem 0;
}

.page-section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #1b4332;
}

.portfolio-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.portfolio-item-caption {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  background-color: rgba(27, 67, 50, 0.9);
  transition: opacity 0.3s ease-in-out;
}

.portfolio-item:hover .portfolio-item-caption {
  opacity: 1;
}

/* About section */
.page-section.bg-primary {
  background-color: #1b4332 !important;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: inherit;
}

/* Contact section */
.page-section {
  padding: 6rem 0;
}

.contact {
  padding: 6rem 0;
}

/* Footer */
.footer {
  background-color: #0d2818;
  color: white;
  padding: 3rem 0;
}

.footer h4 {
  font-weight: 700;
  letter-spacing: 0.1rem;
  color: #52b788;
}

.footer .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.footer a {
  color: #52b788;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid white;
  color: white !important;
  transition: all 0.3s ease;
}

.btn-social:hover {
  background-color: #52b788;
  border-color: #52b788;
  color: #0d2818 !important;
}

/* Copyright section */
.copyright {
  background-color: #051a0f;
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Modal customizations */
.portfolio-modal-title {
  color: #1b4332;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.btn-close {
  filter: brightness(0) invert(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .masthead-heading {
    font-size: 2.5rem;
  }

  .masthead-subheading {
    font-size: 1.2rem;
  }

  .page-section-heading {
    font-size: 2rem;
  }
}

/* Form styling */
.form-floating > label {
  color: #666;
}

.form-control:focus {
  border-color: #1b4332;
  box-shadow: 0 0 0 0.2rem rgba(27, 67, 50, 0.25);
}

.invalid-feedback {
  display: block;
}
