/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Benzin';
  src: url('fonts/Benzin/Benzin-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CM Geom';
  src: url('fonts/CM Geom/cmgeom-regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Horizon';
  src: url('fonts/Horizon/horizon.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #339c5e;
}

.bg-green {
  background-color: var(--green);
}

.text-green {
  color: var(--green);
}

/* Footer links - apply opacity on hover */
footer nav a.text-green:hover {
  color: var(--green);
  opacity: 0.2;
}

/* Ensure CTA buttons with hover states maintain full opacity and green text */
a.rounded-full.border-white:hover,
button.rounded-full.border-white:hover {
  opacity: 1 !important;
  color: var(--green) !important;
}

.header-logo {
  width: 400px;
  height: auto;
  transition: opacity 0.3s;
}

.header-logo-link:hover .header-logo {
  opacity: 0.5;
}

header nav a.header-nav-link {
  transition: opacity 0.3s;
  opacity: 1;
}

header nav a.header-nav-home {
  opacity: 1;
}

header nav a.header-nav-link:hover {
  opacity: 0.5;
}

header nav a.header-nav-button {
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

header nav a.header-nav-button:hover {
  background-color: white;
  color: var(--green);
}

body {
  font-family: 'Benzin', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Benzin', sans-serif;
}

.font-raleway {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 1.5em; 
}

.font-raleway-light {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 1.5em; 
}

.font-raleway-bold {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.5em; 
}

.font-horizon {
  font-family: 'Horizon', sans-serif;
  line-height: 0.2em;
}

.font-cm-geom {
  font-family: 'CM Geom', sans-serif;
  letter-spacing: 0.05em; /* Add space between letters - adjust this value to increase/decrease */
}

.font-benzin {
  font-family: 'Benzin', sans-serif;
}

.travel-heading {
  font-family: 'CM Geom', sans-serif;
  font-size: 60px;
  line-height: 0.7em;
  letter-spacing: 0em;
}

.cm-geom-paragraph {
  font-family: 'CM Geom', sans-serif;
  font-size: 26px;
  line-height: 1.3em;
  letter-spacing: 0.05em;
}

.hero-bg {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 70px);
  margin-top: 0;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/img/background_01.webp');
  background-size: cover;
  background-position: 50% 60%;
  filter: grayscale(100%);
  will-change: transform;
  z-index: -1;
  transform: translateZ(0);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.lab-bg {
  background-image: url('img/img/snow.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.turnaround-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/img/background_03.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.who-we-are-bg {
  background-image: url('img/img/truckwork.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.travel-bg {
  position: relative;
}

.travel-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/img/background_02.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: 0;
}

.travel-bg > * {
  position: relative;
  z-index: 1;
}

.map-container {
  position: relative;
  display: inline-block;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.map-container:hover .map-overlay {
  opacity: 1;
}

.cyber-logo {
  filter: brightness(0) invert(1);
}

.service-icon {
  filter: brightness(0) invert(1);
  width: auto;
  height: 3rem;
}

.service-icon-large {
  height: 5rem;
}

.social-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  transition: filter 0.3s;
  margin: 0 auto;
}

.social-icon-link {
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-link .social-icon {
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}

.social-icon-link:hover .social-icon {
  opacity: 0.5;
}

.turnaround-logo {
  max-width: 600px;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
  margin: 0 auto;
}

/* Matte finish for green boxes */
.bg-green {
  background-color: var(--green);
  filter: saturate(0.95) contrast(0.98);
}

/* Contact form styles */
.contact-form input,
.contact-form textarea {
  font-family: 'CM Geom', sans-serif;
}

.contact-form button {
  transition: background-color 0.3s, transform 0.2s;
}

.contact-form button:hover {
  transform: translateY(-1px);
}

/* Services page additions */
.services-hero {
  background-image: url('img/img/services/ourServices.webp');
  background-size: cover;
  background-position: top center;
  min-height: 420px;
}

.services-banner {
  filter: saturate(0.95) contrast(0.98);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background-color: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 18px;
}

.service-card-media {
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
  overflow: hidden;
  filter: grayscale(100%);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 16px;
  color: #ffffff;
}

.service-card-title {
  font-family: 'Benzin', sans-serif;
  font-size: 26px;
  line-height: 1.05em;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.service-more {
  display: inline-block;
  background: #ffffff;
  color: var(--green);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'CM Geom', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.service-more:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .service-card { grid-template-columns: 1fr; }
  .service-card-body { align-items: center; text-align: center; }
}

/* About page styles */
.about-hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/img/background_01.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  min-height: 420px;
  margin-top: 0;
}

.park-logo-white {
  max-width: 400px;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
  margin: 0 auto;
}

.about-visual {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/img/background_02.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.about-features-bg {
  position: relative;
}

.about-features-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/img/background_03.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: 0;
}

.about-features-bg > * {
  position: relative;
  z-index: 1;
}

.about-expertise-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('img/img/truckwork.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}

.about-mission-bg {
  position: relative;
}

.about-mission-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/img/background_04.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: 0;
}

.about-mission-bg > * {
  position: relative;
  z-index: 1;
}

/* Profile Modal Styles */
#profileModal {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#modalOverlay {
  animation: fadeIn 0.3s ease-in-out;
}

/* Loading spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Basecoat UI Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background-color: var(--green);
  color: white;
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-out;
  transform: translateX(-100%);
}

.sidebar[data-side="left"] {
  left: 0;
  right: auto;
}

.sidebar[data-side="right"] {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

.sidebar[aria-hidden="false"] {
  transform: translateX(0);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar header {
  flex-shrink: 0;
}

.sidebar section.scrollbar {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar section.scrollbar::-webkit-scrollbar {
  width: 6px;
}

.sidebar section.scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar section.scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.sidebar section.scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.sidebar footer {
  flex-shrink: 0;
}

.sidebar [role="group"] {
  margin-bottom: 1rem;
}

.sidebar [role="group"]:last-child {
  margin-bottom: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 0.25rem;
}

.sidebar a,
.sidebar button[type="button"] {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* Profile modal improvements */
#profileModal {
  animation: fadeIn 0.2s ease-out;
}

#profileModal .relative {
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Modals */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.service-modal-content {
  background-color: #f5f5f5;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 60px 40px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.3s ease-out;
}

.service-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--green);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}

.service-modal-close:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.service-modal-body {
  text-align: center;
  color: var(--green);
}

.service-modal-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(0, 100, 0, 0.1);
}

.service-modal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.service-modal-title {
  font-family: 'CM Geom', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--green);
  letter-spacing: 0.5px;
}

.service-modal-subtitle {
  font-family: 'CM Geom', sans-serif;
  font-size: 16px;
  font-style: italic;
  color: var(--green);
  margin-bottom: 8px;
  line-height: 1.5;
}

.service-modal-standards {
  font-family: 'CM Geom', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-top: 12px;
}

.service-modal-icon {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--green);
}

.service-modal-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-modal-content {
    padding: 50px 30px 30px;
  }

  .service-modal-title {
    font-size: 24px;
  }

  .service-modal-subtitle {
    font-size: 14px;
  }

  .service-modal-standards {
    font-size: 12px;
  }

  .service-modal-icon-img {
    width: 60px;
    height: 60px;
  }
}

