/* css/utilities.css */

/* ===== Base Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  background-color: #fff;
}

/* ===== Typography Helpers ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase !important; }

/* ===== Layout Utilities ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.section-padding { padding: 4rem 0 !important; }
.flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.flex-column { display: flex !important; flex-direction: column !important; }
.flex-wrap { display: flex !important; flex-wrap: wrap !important; }
.gap-1 { gap: 1rem !important; }
.gap-2 { gap: 2rem !important; }

/* ===== Visibility ===== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* ===== Media Queries ===== */
@media (max-width: 768px) {
  .flex-column-sm { display: flex !important; flex-direction: column !important; }
}

@media (max-width: 576px) {
  /* Full-width bio columns on small screens */
  #bio .col-lg-5,
  #bio .col-lg-7 {
    max-width: 100%;
  }
  /* Adjust bio heading and paragraphs */
  #bio h2 {
    font-size: 2rem;
  }
  #bio p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== Overflow ===== */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }

/* ===== Positioning ===== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }

/* ===== Rounded Corners & Shadows ===== */
.rounded { border-radius: 0.5rem !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important; }

/* ===== Navbar Utilities ===== */
.navbar {
  background-color: var(--color-primary) !important;
  padding: 1rem 0;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 100;
}
.navbar.fixed-top {
  position: fixed !important;
  top: 0;
  width: 100%;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  margin-right: 2rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.nav-menu li { margin: 0; }
.nav-link {
  color: #fff !important;
  font-weight: 500;
  text-decoration: none !important;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link:focus { color: var(--color-secondary) !important; }
.nav-hidden { transform: translateY(-100%); }
.nav-link.active {
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
}

/* ===== Hero Button Animation ===== */
.hero .content .btn-primary {
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero .content .btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #fff;
  transition: width 0.3s ease, left 0.3s ease;
}
.hero .content .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.3);
}
.hero .content .btn-primary:hover::after {
  width: 100%;
  left: 0;
}

/* ===== Button & Icon Utilities ===== */
.btn-outline-primary, .btn-outline-light, .btn-primary {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  color: #fff !important;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 20px rgba(0,0,0,0.3);
}
.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--color-secondary) !important;
  color: var(--color-secondary) !important;
}
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8) !important;
  color: #fff !important;
}
.btn-outline-primary:hover {
  background-color: var(--color-secondary) !important;
  color: #fff !important;
  transform: translateY(-3px);
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.8) !important;
  color: var(--color-primary) !important;
  transform: translateY(-3px);
}
.btn-primary .fas, .btn-outline-primary .fas, .btn-outline-light .fas { margin-right: 0.5rem; }

/* ===== Links & Logo ===== */
a.btn, button.btn { text-decoration: none !important; }
.logo-img { height: 40px; width: auto; vertical-align: middle; }