/*!
* Beartown Software - Custom Bootstrap Theme
* Copyright 2024 Beartown Software
*/

:root {
  --bs-primary: #6b8d7c;
  --bs-secondary: #6b738d;
  --bs-success: #67c29c;
  --bs-info: #1cabc4;
  --bs-warning: #e4c662;
  --bs-danger: #a16468;
  --bs-dark: #1a1a1a;
  --bs-light: #f8f9fa;
  --bs-white: #fff;
  --bs-black: #000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--bs-primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #1a4442;
}

/* Navigation */
#mainNav {
  min-height: 56px;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#mainNav .navbar-brand {
  color: #000;
  font-weight: 700;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
}

#mainNav .navbar-brand img {
  height: 40px;
  margin-right: 10px;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.0625em;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
}

#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--bs-primary);
}

#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--bs-primary);
}

#mainNav .navbar-toggler {
  font-size: 0.875rem;
  padding: 0.75rem;
  color: #6c757d;
  border: 1px solid #6c757d;
}

/* Masthead */
.masthead {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 25rem;
  padding: 6rem 0 8rem 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 75%, #000 100%), 
              url('../images/bg-masthead.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
}

.masthead h1 {
  font-family: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1.8rem;
  letter-spacing: 0.3rem;
  background: linear-gradient(rgb(249 246 246 / 90%), rgb(249 234 234));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.masthead h2 {
  max-width: 20rem;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .masthead {
    min-height: 35rem;
    padding: 8rem 0 15rem 0;
  }
  .masthead h1 {
    font-size: 4rem;
    line-height: 4rem;
    letter-spacing: 0.8rem;
  }
  .masthead h2 {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .masthead {
    height: 100vh;
    padding: 0;
  }
  .masthead h1 {
    font-size: 6.5rem;
    line-height: 6.5rem;
    letter-spacing: 0.8rem;
  }
  .masthead h2 {
    max-width: 30rem;
    font-size: 1.25rem;
  }
}

/* About Section */
.about-section {
  padding: 10rem 0;
  background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.9) 75%, rgba(0, 0, 0, 0.8) 100%);
}

.about-section p {
  margin-bottom: 5rem;
}

/* Projects Section */
.projects-section {
  padding: 10rem 0;
}

.projects-section .featured-text {
  padding: 2rem;
}

@media (min-width: 992px) {
  .projects-section .featured-text {
    padding: 0 0 0 2rem;
    border-left: 0.5rem solid var(--bs-primary);
  }
}

.projects-section .project-text {
  padding: 3rem;
  font-size: 90%;
}

@media (min-width: 992px) {
  .projects-section .project-text {
    padding: 5rem;
  }
  .projects-section .project-text hr {
    border-color: var(--bs-primary);
    border-width: 0.25rem;
    width: 30%;
  }
}

/* Contact Section */
.contact-section {
  padding: 10rem 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 75%, #000 100%), url("../images/bg-signup.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
}

.contact-section .card {
  border: 0;
  border-bottom: 0.25rem solid var(--bs-primary);
}

.contact-section .card h4 {
  font-size: 0.8rem;
  font-family: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
}

.contact-section .card hr {
  border-color: var(--bs-primary);
  border-width: 0.25rem;
  width: 3rem;
}

.contact-section .social {
  margin-top: 5rem;
}

.contact-section .social a {
  text-align: center;
  height: 3rem;
  width: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100%;
  line-height: 3rem;
  color: rgba(255, 255, 255, 0.3);
}

.contact-section .social a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.contact-section .social a:active {
  color: #fff;
}

/* Footer */
.footer {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  box-shadow: 0 0.1875rem 0.1875rem 0 rgba(0, 0, 0, 0.1);
  padding: 1.25rem 2rem;
  font-family: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 80%;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  border: 0;
  transition: all 0.3s ease-in-out;
}

.btn-primary {
  background-color: var(--bs-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #6b7c8d;
}

/* Utility Classes */
.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-black-50 {
  color: rgba(0, 0, 0, 0.5);
}

.bg-black {
  background-color: #000;
}

.bg-light {
  background-color: #f8f9fa;
}

/* App Showcase Section */
.app-showcase {
  padding: 8rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.app-screenshot {
  max-width: 300px;
  border-radius: 2rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-primary);
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Mobile Specific Styles */
@media (max-width: 767px) {
  /* Reduce section padding on mobile */
  .about-section {
    padding: 4rem 0;
  }
  
  .projects-section {
    padding: 4rem 0;
  }
  
  .contact-section {
    padding: 4rem 0;
  }
  
  .app-showcase {
    padding: 4rem 0;
  }
  
  /* Fix text overflow in headings */
  h1 {
    font-size: 1.75rem;
    word-wrap: break-word;
  }
  
  h2 {
    font-size: 1.5rem;
    word-wrap: break-word;
  }
  
  h3 {
    font-size: 1.25rem;
    word-wrap: break-word;
  }
  
  h4 {
    font-size: 1.1rem;
    word-wrap: break-word;
  }
  
  /* Navbar brand adjustments */
  #mainNav .navbar-brand {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
  
  #mainNav .navbar-brand img {
    height: 30px;
    margin-right: 8px;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 75%;
  }
  
  .btn-lg {
    padding: 1rem 1.75rem;
    font-size: 80%;
  }
  
  /* Project text padding */
  .projects-section .project-text {
    padding: 2rem 1.5rem;
  }
  
  /* Feature icons */
  .feature-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
  
  /* Card padding */
  .card-body {
    padding: 1.25rem;
  }
  
  /* Reduce gap in flex containers */
  .gap-3 {
    gap: 0.75rem !important;
  }
  
  /* Image heights on mobile */
  .about-section img[style*="height: 500px"] {
    height: 300px !important;
  }
  
  .projects-section div[style*="height: 300px"] {
    height: 200px !important;
  }
  
  /* Container padding adjustments */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Masthead h1 mobile adjustments */
  .masthead h1 {
    flex-wrap: wrap;
    gap: 0.5rem !important;
  }
  
  .masthead h1 img {
    height: 0.8em !important;
  }
  
  /* Ensure text doesn't overflow */
  .text-uppercase {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  
  /* Add spacing between image and text sections on mobile */
  .about-section .row.gx-0 .col-lg-6:last-child .project-text,
  .projects-section .row.gx-0 .col-lg-6:last-child .project-text,
  .projects-section .row.gx-0 .col-lg-6.order-lg-1 .project-text {
    padding-top: 3rem;
  }
  
  /* Masthead logo mobile sizing */
  .masthead-logo {
    max-width: 280px !important;
  }
  
  /* Button spacing on mobile */
  .masthead .btn {
    margin: 0.5rem 0.25rem !important;
  }
}

/* Masthead Logo - Index Page Only */
.masthead-logo {
  opacity: 0.55;
  border: 1px solid #000;
  background-color: rgba(255, 255, 255, 0.05);
}
