@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --primary-color: #3a5a40;
  --secondary-color: #588157;
  --text-color: #e8e8e8;
  --light-text: #f4f1ea;
  --card-bg-color: rgba(0, 0, 0, 0.4);
  --border-color: rgba(255, 255, 255, 0.25);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background: #1a1a1a;
  overflow-x: hidden;
}

.background-image {
  background-image: url('../images/tree_climbing.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ======================================
    Header
  ====================================== */
.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0;
}

.header-content {
  display: flex;
  align-items: flex-end;
  gap: 0rem;
}

.logo {
  height: 5.5rem; /* Adjusted for a sleeker look */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) brightness(0.95) sepia(0.4);
}

.site-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem; /* Adjusted for balance */
  color: var(--light-text);
  font-weight: 550;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
  line-height: 1;
  margin-bottom: 0;
}

/* ======================================
    Card Styles (Glassmorphism)
  ====================================== */
.info-card,
.contact-card {
  background: var(--card-bg-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  margin-bottom: 2rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.text-content {
  flex: 1;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--light-text);
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 300;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* ======================================
    About Me & Services Section
  ====================================== */
.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 15px;
  border: 4px solid var(--secondary-color);
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.service-note {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.9;
}


/* ======================================
    Gallery Link Section
  ====================================== */
.gallery-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-text);
  background: var(--card-bg-color);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
  background-color: rgba(88, 129, 87, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* ======================================
    Contact Form
  ====================================== */
.contact-card {
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(232, 232, 232, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(88, 129, 87, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-text);
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:disabled {
  background-color: #555;
  cursor: not-allowed;
}

/* Visually hide the honeypot field */
.hidden-field {
  display: none;
}


/* ======================================
    Responsive Design
  ====================================== */
@media (max-width: 992px) {
  .main-container {
    padding: 1.5rem;
  }

  .info-card {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 2rem;
  }

  .site-header h1 {
    font-size: 2.2rem;
  }

  .logo {
    height: 3.5rem;
  }

  .info-card,
  .contact-card {
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Custom Modal Styles */
.custom-modal-overlay {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
  backdrop-filter: blur(5px); /* Soften background */
  -webkit-backdrop-filter: blur(5px);
  display: flex; /* Use flexbox for centering */
  justify-content: center;
  align-items: center;
  opacity: 0; /* Start hidden */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.custom-modal-content {
  background: var(--card-bg-color); /* Use your existing card background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  width: 90%;
  max-width: 500px; /* Max width for the modal */
  text-align: center;
  transform: translateY(-20px); /* Start slightly above center */
  transition: transform 0.3s ease;
}

.custom-modal-overlay.show .custom-modal-content {
  transform: translateY(0); /* Animate to center */
}

.custom-modal-content h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--light-text);
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color); /* Match your h2 style */
  padding-bottom: 0.5rem;
  display: inline-block;
}

.custom-modal-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.custom-modal-content .submit-btn {
  /* Inherits styles from existing submit-btn but can be customized further */
  min-width: 120px;
  margin-top: 1rem;
}

/* ======================================
    Header Subtitle
   ====================================== */
.header-title-group {
  display: flex;
  flex-direction: row;
  align-items: baseline;  /* This is correct */
  gap: 0.5rem;
  padding-bottom: 0rem; /* Try this (was 2.1rem) */
}

.header-subtext {
  /* This rule is now simpler */
  display: flex;
  align-items: center; /* Vertically aligns "a division of" with the mini-logo */
  gap: 0.3rem;         /* Space between words and logo */
  font-size: 0.9rem;   /* Smaller font size */
  font-weight: 300;
  color: var(--text-color);
  opacity: 0.8;
  letter-spacing: 1px;
}

.subtext-logo {
  height: 1.1rem; /* Makes the logo tiny, just about text height */
}