html,
body {
  margin: 0;
  padding: 0;
  font-family: "Source Sans Pro", sans-serif;
  text-rendering: optimizeLegibility;
  color: #222;
  /* overflow-x: hidden; */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
h4 {
  font-size: 22px;
  margin-bottom: 28px;
}
p {
  font-size: 22px;
}
a,
a:active {
  text-decoration: none!important;
  color: #5A6CFE;
}

header h2 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-top: 70px;
}
header a h2 {
  color: #222;
}
header a h2 span {
  transition: all 400ms cubic-bezier(0.68, -0.1, 0.265, 1.55);
}
header a:hover h2 span {
  color: #fff;
  margin-left: 10px;
}
header .white-block {
  margin-top: 20px;
  width: 46px;
  height: 6px;
  background: #fff;
}

header .title {
  margin-top: 80px;
}
header h1 {
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0;
  margin-left: -6px;
}
header h1 span {
  display: inline-block;
  font-size: 20px;
  margin-top: 18px;
  vertical-align: top;
  letter-spacing: 0;
}
header .title a {
  display: inline-block;
  margin-top: 6px;
  margin-right: -70px;
  background: #222;
  padding: 26px 80px;
  color: #fff;
  border-radius: 12px;
  font-size: 26px;
  letter-spacing: 0.2em;
  transition: all 300ms cubic-bezier(0.68, -0.1, 0.265, 1.55);
}
header .title a:hover {
  margin-top: 12px;
  margin-right: -80px;
  padding: 20px 90px;
}
header h3 {
  font-size: 21px;
}

/*----------------------------------
  Background Grid
------------------------------------*/

.grid {
  position: fixed;
  width: 100%;
}
.grid-line {
  height: 100vh;
  border-left: 1px solid #ccc;
}

.fixed-top {
  position: absolute;
  width: 600px;
  height: 600px;
  background: #FCDE74;
  border-radius: 12px;
  z-index: -1;
  margin-top: -220px;
  margin-left: 100px;
}

/*----------------------------------
  Main
------------------------------------*/

/* .main {
  /* overflow: hidden; */

.section {
  position: relative;
}
section.san-francisco {
  margin-top: 100px;
}

.absolute {
  position: absolute;
  width: 100%;
  height: auto;
  margin-top: 100px;
}
.absolute.above {
  z-index: 2;
}
.absolute h2 {
  font-size: 140px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #f0f0f0;
  z-index: -1;
}
.lg-green {
  width: 160px;
  height: 160px;
  background: #FCDE74;
  border-radius: 12px;
  margin-left: -80px;
  margin-top: 200px;
}
.sm-green {
  width: 60px;
  height: 60px;
  background: #FCDE74;
  border-radius: 12px;
  margin-left: -30px;
  margin-top: 400px;
}
.sm-purple {
  width: 60px;
  height: 60px;
  background: #5A6CFE;
  border-radius: 12px;
  margin-left: -30px;
  margin-top: 400px;
}
.xs-green {
  width: 60px;
  height: 60px;
  background: #FCDE74;
  border-radius: 12px;
  margin-left: -30px;
  margin-top: 400px;
}
.md-green {
  width: 120px;
  height: 120px;
  background: #FCDE74;
  border-radius: 12px;
  margin-left: -60px;
  margin-top: 10px;
}
.lg-purple {
  width: 80px;
  height: 80px;
  background: #5A6CFE;
  border-radius: 12px;
  margin-left: 57px;
  margin-top: 60px;
}

.date {
  margin-top: 400px;
  font-size: 48px;
  font-weight: 600;
  color: #5A6CFE;
}
.temp {
  margin-top: 200px;
  font-size: 280px;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: #5A6CFE;
}

.text-editor {
  background: #222;
  padding: 60px 50px;
  border-radius: 12px;
}
code {
  text-align: left;
  padding: 0;
  font-size: 22px;
  background: none;
  border-radius: 0;
  color: #FCDE74;
}

.md-facebook {
  width: 60px;
  height: 60px;
  background: #5A6CFE;
  border-radius: 12px;
  margin-left: 68px;
  margin-top: 600px;
}
.md-twitter {
  width: 120px;
  height: 120px;
  background: #FCDE74;
  border-radius: 12px;
  margin-left: -60px;
  margin-top: 60px;
}
.md-dixonandmoe {
  width: 120px;
  height: 120px;
  background: #5A6CFE;
  border-radius: 12px;
  margin-left: -60px;
  margin-top: 760px;
}
.bt-green {
  width: 60px;
  height: 60px;
  background: #FCDE74;
  border-radius: 12px;
  margin-left: -30px;
  margin-top: 700px;
}
.bt-purple {
  width: 80px;
  height: 80px;
  background: #5A6CFE;
  border-radius: 12px;
  margin-left: 57px;
  margin-top: 600px;
}

.share {
  position: relative;
  top: 200px;
  z-index: 10;
}
.share a {
  font-size: 34px;
}
.share a span {
  transition: all 400ms cubic-bezier(0.68, -0.1, 0.265, 1.55);
}
.share a:hover span {
  margin-left: 10px;
}

a.dam,
a.dam:hover,
a.dam:active,
a.dam:visited {
  color: #222;
}

span.comment {
  color: rgba(255, 255, 255, 0.4);
}
span.purple {
  color: #5A6CFE;
}
span.green {
  color: #a0f100;
}
span.white {
  color: #fff;
}
span.orange {
  color: orange;
}

/* -------------------------------------------------------------------------- */
/* =====================options-menu and documentation======================= */
/* -------------------------------------------------------------------------- */
h2.heading {
  font-size: 50px;
}
h3.heading {
  font-size: 27px;
  font-weight: bolder;
}

.documentation {
  margin-top: 8rem;
}
.options {
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: white;
  width: 90%;
  padding: 2.5rem;
  margin-top: 4rem;
  height: auto;
}
.options a {
  display: block;
}
.options-text {
  font-size: medium;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin: 1rem 0;
}
.options-text--margin {
  margin-top: 3rem;
}
.options-title {
  font-size: 24px;
  padding: 1rem 0;
  color: #222;
}
.sticky {
  position: sticky;
  top: 0;
  z-index: 4;
}
/* Style the active class (and buttons on mouse-over) */
.active {
  color: #5A6CFE;
}
.option:hover {
  color: #FCDE74;
}
html {
  scroll-behavior: smooth;
}

/*----------------------------------
  Team Modal
------------------------------------*/

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(34, 34, 34, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  max-width: 800px;
  margin: 50px auto;
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(34, 34, 34, 0.3);
  z-index: 1001;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #222;
  margin: 0;
}

.close-btn {
  font-size: 36px;
  color: #ccc;
  cursor: pointer;
  transition: all 300ms ease;
  line-height: 1;
}

.close-btn:hover {
  color: #5A6CFE;
  transform: rotate(90deg);
}

.team-slider {
  padding: 40px;
}

.slider-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f9fa;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 600ms cubic-bezier(0.68, -0.1, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.member-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  max-width: 600px;
}

.member-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.avatar-shape {
  width: 120px;
  height: 120px;
  background: #FCDE74;
  border-radius: 12px;
  transform: rotate(45deg);
  position: relative;
}

.avatar-shape.purple {
  background: #5A6CFE;
}

.avatar-shape::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 48px;
  color: #222;
  font-weight: 900;
}

.member-info h3 {
  font-size: 32px;
  font-weight: 900;
  color: #222;
  margin: 0 0 10px 0;
  letter-spacing: 0.05em;
}

.member-role {
  font-size: 18px;
  color: #5A6CFE;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.member-description {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: #5A6CFE;
  color: #fff;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: #222;
  transform: scale(1.1);
}

.nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.slider-dots {
  display: flex;
  gap: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 300ms ease;
}

.dot.active {
  background: #5A6CFE;
  transform: scale(1.3);
}

.dot:hover {
  background: #FCDE74;
}

/* Modal animations */
.modal.show {
  display: block;
  animation: modalFadeIn 400ms ease;
}

.modal.hide {
  animation: modalFadeOut 400ms ease;
}

/* Mobile modal improvements */
@media (max-width: 767px) {
  .modal-content {
    border-radius: 8px;
  }
  
  .modal.show .modal-content {
    animation: modalSlideUp 400ms ease;
  }
  
  .modal.hide .modal-content {
    animation: modalSlideDown 400ms ease;
  }
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

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

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

/*----------------------------------
  Contact Modal
------------------------------------*/

.contact-form {
  padding: 40px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  width: 100%;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px 18px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Source Sans Pro", sans-serif;
  transition: all 300ms ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5A6CFE;
  box-shadow: 0 0 0 3px rgba(90, 108, 254, 0.1);
}

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

.form-group select {
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 35px;
  background: #5A6CFE;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  font-family: "Source Sans Pro", sans-serif;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.68, -0.1, 0.265, 1.55);
  letter-spacing: 0.05em;
}

.submit-btn:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(90, 108, 254, 0.3);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-arrow {
  font-size: 20px;
  transition: transform 300ms ease;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn:disabled .btn-arrow {
  transform: none;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 60px 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  margin: 0 auto 30px;
  animation: successPulse 0.6s ease;
}

.success-message h3 {
  font-size: 28px;
  font-weight: 900;
  color: #222;
  margin: 0 0 15px 0;
  letter-spacing: 0.05em;
}

.success-message p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Form Validation Styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  font-weight: 500;
}

/* Loading state */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fuzz /* Safari and Chrome */ {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  100% {
    /*-webkit-transform: scaleY(1);*/
    opacity: 1;
  }
}

@keyframes fuzz2 /* Safari and Chrome */ {
  0% {
    opacity: 0;
  }
  48% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fuzz3 /* Safari and Chrome */ {
  0% {
    opacity: 0;
  }
  54% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes stretch /* Safari and Chrome */ {
  0% {
    -webkit-transform: scaleX(0);
    opacity: 0;
  }
  50% {
    -webkit-transform: scaleX(0);
    opacity: 1;
  }
  60% {
    -webkit-transform: scaleX(0);
  }
  100% {
    -webkit-transform: scaleX(1);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 20px, 0);
  }
  30% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/*----------------------------------
  Medium devices: iPad vertical
------------------------------------*/

@media (max-width: 991px) {
  /* Team Modal Tablet */
  .modal-content {
    margin: 30px;
    max-width: calc(100% - 60px);
  }
  
  .member-card {
    gap: 30px;
    padding: 30px;
  }
  
  .member-avatar {
    width: 100px;
    height: 100px;
  }
  
  .avatar-shape {
    width: 100px;
    height: 100px;
  }
  
  .member-info h3 {
    font-size: 28px;
  }
  
  /* Contact Modal Tablet */
  .contact-form {
    padding: 35px;
  }
  
  .form-row {
    gap: 15px;
  }
  
  .submit-btn {
    padding: 16px 30px;
    font-size: 17px;
  }
}

/*----------------------------------
  Small devices: iPhone 6+ and below
------------------------------------*/

@media (max-width: 767px) {
  .sticky {
    display: none;
  }
  
  /* Team Modal Responsive */
  .modal-content {
    margin: 20px;
    max-width: calc(100% - 40px);
  }
  
  .modal-header {
    padding: 20px 25px;
  }
  
  .modal-header h2 {
    font-size: 24px;
  }
  
  .team-slider {
    padding: 25px;
  }
  
  .slider-container {
    height: 350px;
  }
  
  .member-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  
  .member-avatar {
    width: 80px;
    height: 80px;
  }
  
  .avatar-shape {
    width: 80px;
    height: 80px;
  }
  
  .member-info h3 {
    font-size: 24px;
  }
  
  .member-role {
    font-size: 16px;
  }
  
  .member-description {
    font-size: 16px;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  /* Contact Modal Mobile */
  .contact-form {
    padding: 25px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-size: 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .success-message {
    padding: 40px 25px;
  }
  
  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .success-message h3 {
    font-size: 22px;
  }
  
  .success-message p {
    font-size: 16px;
  }
}

/*----------------------------------
  iPhone 6 & 6+ specific text bump
------------------------------------*/

@media (max-width: 991px) and (max-height: 736px) and (min-height: 481px) {
  .sticky {
    display: none;
  }
  p {
    text-align: justify;
  }
}

/*----------------------------------
  Mobile Optimization
------------------------------------*/

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575px) {
  /* Header adjustments */
  header h2 {
    font-size: 12px;
    margin-top: 40px;
  }
  
  header .title {
    margin-top: 40px;
  }
  
  header h1 {
    font-size: 48px;
    margin-left: -3px;
  }
  
  header h1 span {
    font-size: 16px;
    margin-top: 12px;
  }
  
  header h3 {
    font-size: 16px;
  }
  
  /* Subtitle adjustments */
  .subtitle .row {
    flex-direction: column;
  }
  
  .subtitle .col-md-2 {
    margin-bottom: 15px;
  }
  
  /* Main content adjustments */
  section.san-francisco {
    margin-top: 60px;
  }
  
  .absolute h2 {
    font-size: 60px;
  }
  
  .date {
    margin-top: 200px;
    font-size: 24px;
  }
  
  .temp {
    margin-top: 100px;
    font-size: 120px;
  }
  
  /* Share section */
  .share {
    top: 100px;
  }
  
  .share a {
    font-size: 20px;
  }
  
  /* Grid adjustments */
  .grid {
    display: none; /* Hide grid on mobile for cleaner look */
  }
  
  /* Fixed elements adjustments */
  .fixed-top {
    width: 300px;
    height: 300px;
    margin-top: -100px;
    margin-left: 50px;
  }
  
  /* Decorative elements adjustments */
  .lg-green {
    width: 80px;
    height: 80px;
    margin-left: -40px;
    margin-top: 100px;
  }
  
  .sm-green, .sm-purple, .xs-green {
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: 200px;
  }
  
  .md-green {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: 5px;
  }
  
  .lg-purple {
    width: 40px;
    height: 40px;
    margin-left: 28px;
    margin-top: 30px;
  }
  
  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Text adjustments */
  h4 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  p {
    font-size: 16px;
  }
  
  /* Modal adjustments for mobile */
  .modal-content {
    margin: 10px;
    max-width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h2 {
    font-size: 20px;
  }
  
  .close-btn {
    font-size: 28px;
  }
  
  .team-slider {
    padding: 20px;
  }
  
  .slider-container {
    height: 300px;
  }
  
  .member-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding: 15px;
  }
  
  .member-avatar {
    width: 60px;
    height: 60px;
  }
  
  .avatar-shape {
    width: 60px;
    height: 60px;
  }
  
  .member-info h3 {
    font-size: 20px;
  }
  
  .member-role {
    font-size: 14px;
  }
  
  .member-description {
    font-size: 14px;
  }
  
  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .slider-dots {
    gap: 10px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-size: 14px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .form-group textarea {
    min-height: 100px;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .success-message {
    padding: 30px 20px;
  }
  
  .success-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .success-message h3 {
    font-size: 18px;
  }
  
  .success-message p {
    font-size: 14px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  header h1 {
    font-size: 64px;
  }
  
  header h1 span {
    font-size: 18px;
  }
  
  .absolute h2 {
    font-size: 80px;
  }
  
  .date {
    font-size: 32px;
  }
  
  .temp {
    font-size: 160px;
  }
  
  .share a {
    font-size: 24px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  header h1 {
    font-size: 80px;
  }
  
  .absolute h2 {
    font-size: 100px;
  }
  
  .date {
    font-size: 36px;
  }
  
  .temp {
    font-size: 200px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Desktop styles are already defined above */
}

/*----------------------------------
  Touch-friendly improvements
------------------------------------*/

@media (max-width: 767px) {
  /* Increase touch targets */
  a, button, .nav-btn, .dot {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve button spacing */
  .nav-btn {
    margin: 0 5px;
  }
  
  /* Better form spacing */
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 44px;
  }
  
  /* Improve modal touch targets */
  .close-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/*----------------------------------
  Landscape orientation adjustments
------------------------------------*/

@media (max-width: 767px) and (orientation: landscape) {
  .modal-content {
    margin: 5px;
    max-height: calc(100vh - 10px);
  }
  
  .slider-container {
    height: 200px;
  }
  
  .member-card {
    flex-direction: row;
    text-align: left;
    gap: 15px;
    padding: 10px;
  }
  
  .member-avatar {
    width: 50px;
    height: 50px;
  }
  
  .avatar-shape {
    width: 50px;
    height: 50px;
  }
  
  .member-info h3 {
    font-size: 16px;
  }
  
  .member-role {
    font-size: 12px;
  }
  
  .member-description {
    font-size: 12px;
  }
}

/*----------------------------------
  High DPI displays
------------------------------------*/

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp text on high DPI displays */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/*----------------------------------
  Reduced motion preferences
------------------------------------*/

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .slide {
    transition: none;
  }
  
  .modal.show,
  .modal.hide {
    animation: none;
  }
}
