/*
  styles.css for Tim Metcalfe Portfolio Website
  Extracted from index.html on 2025-09-14
*/
:root {
  --primary-blue: #0066cc;
  --dark-blue: #004499;
  --light-blue: #e6f2ff;
  --dark-grey: #333333;
  --medium-grey: #666666;
  --light-grey: #f8f9fa;
  --white: #ffffff;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-grey);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header"
    "main"
    "footer";
}

.page-header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.page-main {
  grid-area: main;
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(min-content, max-content));
}

.page-footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap;
  }
  @media (max-width: 768px) {
    .page-footer {
      justify-content: center;
      text-align: center;
    }
    .page-footer .footer-right {
      width: 100%;
    }
}

.hero-grid,
.services-grid,
.work-grid,
.features-grid {
  width: 100%;
  max-width: min(1200px, 100vw);
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-grid {
  width: 100%;
  max-width: min(800px, 100vw);
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 40vh;
  padding: 0 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 15px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 0 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 10px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 10px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .services-grid,
  .work-grid,
  .features-grid,
  .contact-grid {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero-grid,
  .services-grid,
  .work-grid,
  .features-grid,
  .contact-grid {
    padding: 0 5px;
    gap: 1rem;
  }
}

[class*="col-"] {
  padding: 0 15px;
}

.col-lg-4 {
  width: 33.333333%;
}
.col-lg-6 {
  width: 50%;
}
.col-lg-8 {
  width: 66.666667%;
}
.col-md-6 {
  width: 50%;
}

@media (max-width: 991px) {
  .col-lg-4,
  .col-lg-6,
  .col-lg-8 {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .col-md-6 {
    width: 100%;
  }
}

.g-4 > [class*="col-"] {
  margin-bottom: 1.5rem;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}
.me-3 {
  margin-right: 1rem;
}
.ms-auto {
  margin-left: auto;
}

.text-center {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.text-md-end {
  text-align: end;
}
.text-muted {
  color: var(--medium-grey);
}
.text-white {
  color: white;
}
.text-light {
  color: #f8f9fa;
}

.d-flex {
  display: flex;
}
.d-none {
  display: none;
}
.d-lg-block {
  display: block;
}

@media (max-width: 991px) {
  .d-lg-block {
    display: none;
  }
}

.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-scrolled {
  background-color: white !important;
}

.navbar-inner {
  width: 100%;
  max-width: min(1200px, 100vw);
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--dark-grey);
}

.navbar-brand .brand-name {
  color: var(--primary-blue);
}

.navbar-brand .brand-company {
  color: var(--dark-grey);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: var(--dark-grey) !important;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-blue) !important;
}

.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid var(--medium-grey);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

.navbar-toggler-icon {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--dark-grey);
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: var(--dark-grey);
  left: 0;
}

.navbar-toggler-icon::before {
  top: -6px;
}

.navbar-toggler-icon::after {
  bottom: -6px;
}

.navbar-collapse {
  display: flex;
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.btn-light {
  background-color: white;
  border-color: white;
  color: var(--dark-grey);
}

.btn-light:hover {
  background-color: #f8f9fa;
  color: var(--primary-blue);
  text-decoration: none;
}

.btn-outline-light {
  background-color: transparent;
  border-color: white;
  color: white;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-blue);
  text-decoration: none;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

.w-100 {
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

.rounded-circle {
  border-radius: 50% !important;
}

.hero-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.hero-badges img {
  height: 90px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}
@media (max-width: 480px) {
  .hero-badges img {
    height: 36px;
    max-width: 120px;
  }
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d1edff;
  border: 1px solid #0066cc;
  color: #004499;
}

.alert-danger {
  background-color: #ffe6e6;
  border: 1px solid #dc3545;
  color: #721c24;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.bg-dark {
  background-color: #212529;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.hero-section {
background: linear-gradient(0deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)), var(--primary-blue);
  color: white;
  padding: 60px 0 30px 0;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.section-padding {
  padding: 40px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--dark-grey);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--dark-blue)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.5rem;
  color: white;
}

.why-me-section {
  background-color: var(--light-grey);
}

.what-i-do-section {
  background-color: #e8f2f7;
}

.recent-work-section {
  background-color: #e0eaf2;
}

.testimonials-section {
  background-color: #e6f0f6;
}

.contact-section {
  background-color: #dde7f0;
}

.feature-item {
  margin-bottom: 2.5rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  color: white;
  font-size: 1.25rem;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  border-left: 4px solid var(--primary-blue);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--medium-grey);
}

.contact-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.contact-icon i {
  color: white;
  font-size: 1rem;
}

.tech-badge {
  background-color: var(--light-blue);
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.25rem;
  display: inline-block;
}

section {
  scroll-margin-top: 20px;
}

.form-message-hidden {
  display: none;
}

.contact-info h4 {
  color: var(--dark-grey);
}

.contact-info p {
  color: var(--dark-grey);
}

.contact-info a {
  color: var(--primary-blue);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-section {
    padding: 50px 0 30px 0;
    min-height: 35vh;
  }

  .section-padding {
    padding: 30px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .text-md-end {
    text-align: center;
  }
}
