* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

/* a:visited {
  color: inherit;
} */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  width: 100%;
  font-family: 'Roboto', sans-serif;
}

html {
  background: white;
}

body {
  font-family: 'Roboto', sans-serif;
}
.client-header-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
}

.client-header-right {
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 20px;
}

.client-header-login {
  font-size: 1em;
  font-weight: bold;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
}

.client-header-sign-up-off {
  border-radius: 0.5em;
  padding: 0.5em 1em;
  background-color: #ffffff;
  font-size: 1em;
  font-weight: bold;
  color: rgb(1, 91, 97);
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
}

.client-header {
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  background-color: rgb(1, 91, 97);
}

.header {
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 1em;
  background-color: rgb(1, 91, 97);
  position: relative;
}

.header-left {
  /* Igual que .client-header-left si existía */
}

.header-right {
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 20px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive header styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: rgb(1, 91, 97);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5em 2em 2em 2em;
    gap: 1.5em;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }
  
  .header-right.active {
    right: 0;
  }
  
  .header-right .client-header-profile,
  .header-right .client-header-sign-up-off {
    width: 100%;
    padding: 0.8em 1em;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .header-right .client-header-sign-up-off {
    margin-top: 1em;
    text-align: center;
    border-bottom: none;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5em;
  }
  
  .client-header-title {
    font-size: 1.4em !important;
    margin-left: 0.5em !important;
  }
  
  .header {
    padding: 1em 0.5em;
  }
}

@media (max-width: 480px) {
  .header-right {
    width: 85%;
  }
  
  .client-header-title {
    font-size: 1.2em !important;
  }
}

.home-body {
  background-color: rgb(1, 91, 97);
  
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  z-index: 5;
  top: 0;
  left: 0;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  transition: opacity 0.5s ease-in-out;
}

.home-buildapp-title {
  font-size: 4.5em;
  text-align: center;
  text-shadow: 5px 5px 5px rgba(1, 91, 97, 0.6);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3em;
  font-weight: 900;
  letter-spacing: 2px;
}

.home-content-slogan {
  font-size: 1.8em;
  font-weight: 600;
  text-align: center;
  text-shadow: 3px 3px 3px rgba(1, 91, 97, 1);
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.5;
  margin-top: 0.5em;
  letter-spacing: 1px;
}

.home-header {
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 1);
  color: #ffffff;
  font-size: 1em;
  font-family: 'Roboto', sans-serif; 
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 2em;
  margin-top: -6em;
}

.choose-role {
  font-family: 'Roboto', sans-serif;
  margin-top: 3em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3em;
  flex-wrap: wrap;
  padding: 0 2em;
}

.choose-role-button {
  box-shadow: 0 0 20px 0 rgba(1, 91, 97, 0.9);
  border: 0px;
  margin-top: 1em;
  font-weight: bold;
  background-color: white;
  color: #000000;
  width: 15em;
  height: 15em;
  border-radius: 1.2em;
  font-size: 1em;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 1.2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.4;
}

.choose-role-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px 0 rgba(1, 91, 97, 0.8);
}

.footer-text {
  font-weight: 500;
  margin-top: 4em;
  color: #ffffff;
  font-size: 1em;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.footer-text a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5em 1em;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer-text a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pro-list {
  display: flex;
  flex-direction: column;
  margin-left: 2em;
}

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

.bigger-text {
  font-size: 1.5em;
}

.down-fivepercent {
  margin-top: 5%;
}

p {
  font-family: 'Roboto', sans-serif;
}

.profile-pic-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-pic-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-pic-circle i {
  font-size: 4em;
  color: #bdbdbd;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-header-profile {
  font-size: 1em;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
}

/* ===== HOME PAGE STYLES ===== */
body.home-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

/* ===== SPECIFIC HOME BODY STYLES ===== */
body.home-body {
  background: rgb(1, 91, 97);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
}

body.home-body html {
  background: rgb(1, 91, 97);
}



/* ===== ORIGINAL HOME STYLES ===== */

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  transition: opacity 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-buildapp-title {
    font-size: 3em;
    margin-top: 1.5em;
    letter-spacing: 1px;
    padding: 0 0.5em;
  }
  
  .home-content-slogan {
    font-size: 1.3em;
    padding: 0 1em;
    margin-top: 0.3em;
    line-height: 1.4;
  }
  
  .choose-role {
    flex-direction: column;
    gap: 1.5em;
    margin-top: 2em;
    padding: 0 1em;
  }
  
  .choose-role-button {
    width: 100%;
    max-width: 20em;
    height: auto;
    min-height: 12em;
    padding: 1.5em 1em;
  }
  
  .choose-role-button i {
    font-size: 2.5em !important;
    margin-bottom: 0.5em !important;
    margin-top: 0.3em !important;
  }
  
  .choose-role-button div:first-of-type {
    font-size: 1.2em !important;
    margin-bottom: 0.4em !important;
  }
  
  .choose-role-button div:last-of-type {
    font-size: 0.9em !important;
    line-height: 1.4 !important;
  }
  
  .footer-text {
    margin-top: 2.5em;
    padding: 0 1em;
    font-size: 0.95em;
  }
  
  .footer-text a {
    padding: 0.4em 0.8em;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .home-buildapp-title {
    font-size: 2.2em;
    margin-top: 1em;
    letter-spacing: 0.5px;
  }
  
  .home-content-slogan {
    font-size: 1.1em;
    padding: 0 0.8em;
    margin-top: 0.2em;
  }
  
  .choose-role {
    margin-top: 1.5em;
    gap: 1.2em;
    padding: 0 0.8em;
  }
  
  .choose-role-button {
    width: 100%;
    max-width: 18em;
    min-height: 11em;
    padding: 1.2em 0.8em;
  }
  
  .choose-role-button i {
    font-size: 2.2em !important;
    margin-bottom: 0.4em !important;
    margin-top: 0.2em !important;
  }
  
  .choose-role-button div:first-of-type {
    font-size: 1.1em !important;
    margin-bottom: 0.3em !important;
  }
  
  .choose-role-button div:last-of-type {
    font-size: 0.85em !important;
    line-height: 1.3 !important;
  }
  
  .footer-text {
    margin-top: 2em;
    font-size: 0.9em;
    padding: 0 0.8em;
  }
  
  .footer-text a {
    padding: 0.35em 0.7em;
    font-size: 0.85em;
  }
}

@media (max-width: 360px) {
  .home-buildapp-title {
    font-size: 1.8em;
  }
  
  .home-content-slogan {
    font-size: 1em;
  }
  
  .choose-role-button {
    max-width: 100%;
    min-height: 10em;
  }
  
  .choose-role-button i {
    font-size: 2em !important;
  }
  
  .choose-role-button div:first-of-type {
    font-size: 1em !important;
  }
  
  .choose-role-button div:last-of-type {
    font-size: 0.8em !important;
  }
}

/* ===== PROFILE PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .client-profile-container {
    flex-direction: column !important;
    margin-left: 1em !important;
    margin-right: 1em !important;
    margin-bottom: 2em !important;
  }
  
  .client-profile-container > div:first-child {
    width: 100% !important;
    margin-bottom: 2em;
  }
  
  .client-profile-right {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  
  .profile-pic-circle {
    width: 100px;
    height: 100px;
    margin-bottom: 1em;
  }
  
  .profile-pic-circle i {
    font-size: 3em;
  }
  
  h2 {
    font-size: 1.3em !important;
    text-align: center !important;
  }
  
  .pro-info > div {
    min-width: 100% !important;
    margin-bottom: 1em;
  }
  
  .pro-info > div > div {
    flex-direction: column !important;
    gap: 0.5em !important;
  }
  
  .portfolio-gallery {
    justify-content: center !important;
  }
  
  .portfolio-item {
    max-width: 100% !important;
    flex: 1 1 calc(50% - 0.5em) !important;
    min-width: 150px;
  }
  
  .applied-projects-list {
    grid-template-columns: 1fr !important;
    gap: 1em !important;
  }
  
  .applied-project-card {
    max-width: 100% !important;
  }
  
  .client-profile-projects {
    flex-direction: column !important;
  }
  
  .client-profile-project {
    min-width: 100% !important;
    width: 100% !important;
  }
  
  .project-actions {
    flex-direction: column !important;
  }
  
  .project-actions button,
  .project-actions div {
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .client-profile-container {
    margin-left: 0.5em !important;
    margin-right: 0.5em !important;
  }
  
  .profile-pic-circle {
    width: 80px;
    height: 80px;
  }
  
  .profile-pic-circle i {
    font-size: 2.5em;
  }
  
  h2 {
    font-size: 1.1em !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.1em !important;
  }
  
  .pro-info > div {
    padding: 0.8em !important;
  }
  
  .portfolio-item {
    flex: 1 1 100% !important;
  }
  
  .portfolio-item img {
    height: 120px !important;
  }
  
  .applied-project-card {
    padding: 1em !important;
  }
  
  .applied-project-card h3 {
    font-size: 1.1em !important;
  }
  
  .project-gallery img {
    width: 60px !important;
    height: 60px !important;
  }
  
  form[action*="upload-photo"] {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
  }
  
  form[action*="upload-photo"] button {
    margin-left: 0 !important;
    width: 100%;
  }
  
  .ratings-section > div > div {
    padding: 0.6em !important;
    font-size: 0.85em !important;
  }
}

/* Image Modal Responsive */
@media (max-width: 768px) {
  .image-modal .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    padding: 1em !important;
  }
  
  .modal-image {
    max-width: 100% !important;
    max-height: 70vh !important;
  }
  
  .close-modal {
    font-size: 2em !important;
    right: 0.5em !important;
    top: 0.5em !important;
  }
  
  .prev, .next {
    font-size: 1.5em !important;
    padding: 0.3em 0.5em !important;
  }
}

/* ===== PRO-PROFILE PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .container[style*="max-width: 1000px"] {
    padding: 0 1em !important;
    margin: 1em auto !important;
  }
  
  /* Professional Header */
  .container > div[style*="display: flex"][style*="align-items: center"] {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.5em !important;
    gap: 1.5em !important;
  }
  
  .container > div[style*="display: flex"][style*="align-items: center"] img,
  .container > div[style*="display: flex"][style*="align-items: center"] > div[style*="width: 120px"] {
    width: 100px !important;
    height: 100px !important;
  }
  
  .container h1 {
    font-size: 1.6em !important;
  }
  
  .container > div[style*="display: flex"][style*="align-items: center"] > div[style*="flex: 1"] {
    width: 100% !important;
  }
  
  .container > div[style*="display: flex"][style*="align-items: center"] > div[style*="flex: 1"] > div[style*="display: flex"][style*="gap: 1em"] {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  
  /* Statistics */
  .container > div[style*="display: flex"][style*="gap: 2em"][style*="margin-bottom: 3em"] {
    flex-direction: column !important;
    gap: 1em !important;
  }
  
  .container > div[style*="display: flex"][style*="gap: 2em"][style*="margin-bottom: 3em"] > div {
    min-width: 100% !important;
    width: 100% !important;
  }
  
  /* Bio Section */
  .container > div[style*="margin-bottom: 3em"][style*="padding: 2em"] {
    padding: 1.5em !important;
    margin-bottom: 2em !important;
  }
  
  /* Portfolio Gallery */
  .container .portfolio-gallery,
  .container div[style*="display: flex"][style*="flex-wrap: wrap"][style*="gap: 1em"] {
    justify-content: center !important;
    gap: 0.8em !important;
  }
  
  .container .portfolio-item,
  .container div[style*="position: relative"][style*="border: 1px solid"] {
    max-width: calc(50% - 0.4em) !important;
    min-width: 150px !important;
  }
  
  /* Reviews Section */
  .container > div[style*="margin-bottom: 3em"] > div[style*="display: flex"][style*="flex-direction: column"] {
    gap: 0.6em !important;
  }
  
  .container > div[style*="margin-bottom: 3em"] > div[style*="display: flex"][style*="flex-direction: column"] > div {
    padding: 0.8em !important;
    font-size: 0.9em !important;
  }
}

@media (max-width: 480px) {
  .container[style*="max-width: 1000px"] {
    padding: 0 0.8em !important;
  }
  
  .container > div[style*="display: flex"][style*="align-items: center"] {
    padding: 1em !important;
  }
  
  .container > div[style*="display: flex"][style*="align-items: center"] img,
  .container > div[style*="display: flex"][style*="align-items: center"] > div[style*="width: 120px"] {
    width: 80px !important;
    height: 80px !important;
  }
  
  .container h1 {
    font-size: 1.4em !important;
  }
  
  .container p {
    font-size: 0.95em !important;
  }
  
  .container > div[style*="display: flex"][style*="align-items: center"] > div[style*="flex: 1"] > div[style*="display: flex"][style*="gap: 1em"] > div {
    font-size: 0.85em !important;
    padding: 0.5em 1em !important;
  }
  
  .container > div[style*="margin-bottom: 3em"][style*="padding: 2em"] {
    padding: 1em !important;
  }
  
  .container h2 {
    font-size: 1.2em !important;
  }
  
  .container .portfolio-item,
  .container div[style*="position: relative"][style*="border: 1px solid"] {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .container .portfolio-item img,
  .container div[style*="position: relative"] img {
    height: 120px !important;
  }
  
  button[onclick="history.back()"] {
    font-size: 0.85em !important;
    padding: 0.3em 0 !important;
  }
}

/* ===== PROJECTS PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .client-profile-container[style*="margin-left: 2em"] {
    margin-left: 1em !important;
    margin-right: 1em !important;
    padding: 0 0.5em;
  }
  
  .projects-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1em !important;
  }
  
  .project-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 1em !important;
  }
  
  .project-card h3 {
    font-size: 1.2em !important;
  }
  
  .project-card p {
    font-size: 0.9em !important;
    margin: 0.4em 0 !important;
  }
  
  .project-gallery {
    flex-wrap: wrap !important;
    gap: 0.4em !important;
  }
  
  .project-gallery img {
    width: 80px !important;
    height: 80px !important;
  }
  
  .project-actions {
    flex-direction: column !important;
    gap: 0.5em !important;
  }
  
  .project-actions .btn,
  .project-actions button,
  .project-actions form {
    width: 100% !important;
  }
  
  .project-actions button {
    text-align: center !important;
  }
  
  .project-comments {
    margin-top: 1em !important;
    padding-top: 0.8em !important;
  }
  
  .comments-container textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    min-height: 60px !important;
  }
  
  .comments-list {
    max-height: 150px !important;
  }
  
  h1 {
    font-size: 1.5em !important;
    padding: 0 0.5em !important;
  }
  
  .btn[style*="Create New Project"] {
    width: 100% !important;
    text-align: center !important;
    padding: 0.7em 1em !important;
  }
}

@media (max-width: 480px) {
  .client-profile-container[style*="margin-left: 2em"] {
    margin-left: 0.5em !important;
    margin-right: 0.5em !important;
    padding: 0 0.3em;
  }
  
  .project-card {
    padding: 0.8em !important;
  }
  
  .project-card h3 {
    font-size: 1.1em !important;
  }
  
  .project-card p {
    font-size: 0.85em !important;
  }
  
  .project-gallery img {
    width: 70px !important;
    height: 70px !important;
  }
  
  .project-actions .btn,
  .project-actions button {
    font-size: 0.85em !important;
    padding: 0.6em 0.8em !important;
  }
  
  .comments-container textarea {
    font-size: 16px !important;
    padding: 0.5em !important;
  }
  
  .comments-container button {
    width: 100% !important;
    padding: 0.5em !important;
  }
  
  .comment {
    padding: 0.5em !important;
    font-size: 0.85em !important;
  }
  
  h1 {
    font-size: 1.3em !important;
  }
}

/* ===== PROS LIST PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .pro-list[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5em !important;
    margin-top: 1.5em !important;
    padding: 0 1em !important;
  }
  
  .pro-card {
    width: 100% !important;
    padding: 1.2em !important;
  }
  
  .pro-card > div[style*="display: flex"][style*="align-items: center"] {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }
  
  .pro-card > div[style*="display: flex"][style*="align-items: center"] > div[style*="margin-right: 1em"] {
    margin-right: 0 !important;
    margin-bottom: 1em !important;
  }
  
  .pro-card h3 {
    font-size: 1.2em !important;
    text-align: center !important;
  }
  
  .pro-card p {
    text-align: center !important;
    font-size: 0.9em !important;
  }
  
  .portfolio-gallery {
    justify-content: center !important;
  }
  
  .portfolio-gallery img {
    width: 70px !important;
    height: 70px !important;
  }
  
  .pro-card > div[style*="margin-top: 1em"][style*="display: flex"] {
    justify-content: center !important;
  }
  
  .pro-card .btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.7em 1em !important;
  }
  
  h1 {
    font-size: 1.5em !important;
    padding: 0 0.5em !important;
  }
}

@media (max-width: 480px) {
  .pro-list[style*="grid-template-columns"] {
    gap: 1em !important;
    padding: 0 0.5em !important;
  }
  
  .pro-card {
    padding: 1em !important;
  }
  
  .pro-card h3 {
    font-size: 1.1em !important;
  }
  
  .pro-card p {
    font-size: 0.85em !important;
  }
  
  .portfolio-gallery img {
    width: 60px !important;
    height: 60px !important;
  }
  
  .pro-card > div[style*="width: 60px"] {
    width: 50px !important;
    height: 50px !important;
  }
  
  .pro-card > div[style*="width: 60px"] span {
    font-size: 1.5em !important;
  }
  
  h1 {
    font-size: 1.3em !important;
  }
  
  div[style*="text-align: center"][style*="padding: 3em"] {
    padding: 2em 1em !important;
  }
  
  div[style*="text-align: center"] i {
    font-size: 2em !important;
  }
}

/* ===== EDIT PROJECT PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .current-images {
    margin: 1em 0.5em !important;
  }
  
  .current-images h3 {
    font-size: 1.2em !important;
  }
  
  .current-images .portfolio-gallery {
    gap: 0.8em !important;
  }
  
  .current-images .portfolio-item {
    max-width: calc(50% - 0.4em) !important;
    min-width: 150px !important;
  }
  
  .current-images .portfolio-item img {
    height: 120px !important;
  }
  
  div[style*="margin-top: 1em"][style*="text-align: center"] {
    margin-top: 1.5em !important;
  }
  
  div[style*="margin-top: 1em"] a {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 0.7em 1em !important;
  }
  
  h1, h2.center-text {
    font-size: 1.5em !important;
    padding: 0 0.5em !important;
  }
}

@media (max-width: 480px) {
  .current-images .portfolio-item {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .current-images .portfolio-item img {
    height: 150px !important;
  }
  
  h1, h2.center-text {
    font-size: 1.3em !important;
  }
}

/* ===== APPLICATIONS PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .container[style*="max-width: 1200px"] {
    padding: 0 1em !important;
    margin: 1em auto !important;
  }
  
  .container > div[style*="display: flex"][style*="justify-content: space-between"] {
    flex-direction: column !important;
    gap: 1em !important;
    align-items: flex-start !important;
  }
  
  .container > div[style*="display: flex"][style*="justify-content: space-between"] > div[style*="display: flex"][style*="gap: 1em"] {
    width: 100% !important;
    justify-content: space-between !important;
  }
  
  .container > div[style*="display: flex"][style*="justify-content: space-between"] > div[style*="display: flex"][style*="gap: 1em"] > div {
    flex: 1 !important;
    min-width: auto !important;
  }
  
  .container h1 {
    font-size: 1.4em !important;
    width: 100% !important;
  }
  
  .project-card[style*="border: 1px solid"] {
    padding: 1em !important;
    margin-bottom: 1.5em !important;
  }
  
  .project-card > div[style*="display: flex"][style*="justify-content: space-between"] {
    flex-direction: column !important;
    gap: 1em !important;
  }
  
  .project-card > div[style*="display: flex"][style*="justify-content: space-between"] > div[style*="text-align: center"] {
    width: 100% !important;
    min-width: 100% !important;
  }
  
  .project-card h2 {
    font-size: 1.3em !important;
  }
  
  .project-card > div[style*="display: flex"][style*="justify-content: space-between"] > div > div[style*="display: flex"][style*="gap: 2em"] {
    flex-direction: column !important;
    gap: 0.8em !important;
  }
  
  .applications-list > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 1em !important;
  }
  
  .professional-card {
    width: 100% !important;
  }
  
  .professional-card > div[style*="display: flex"][style*="align-items: center"] {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }
  
  .professional-card > div[style*="display: flex"][style*="gap: 1em"][style*="flex-wrap: wrap"] {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .container[style*="max-width: 1200px"] {
    padding: 0 0.8em !important;
  }
  
  .container > div[style*="display: flex"][style*="justify-content: space-between"] > div[style*="display: flex"][style*="gap: 1em"] {
    flex-direction: column !important;
    gap: 0.8em !important;
  }
  
  .container > div[style*="display: flex"][style*="justify-content: space-between"] > div[style*="display: flex"][style*="gap: 1em"] > div {
    width: 100% !important;
  }
  
  .container h1 {
    font-size: 1.2em !important;
  }
  
  .project-card[style*="border: 1px solid"] {
    padding: 0.8em !important;
  }
  
  .project-card h2 {
    font-size: 1.2em !important;
  }
  
  .project-card h3 {
    font-size: 1em !important;
  }
  
  .professional-card {
    padding: 0.8em !important;
  }
  
  .professional-card h4 {
    font-size: 0.95em !important;
  }
  
  .professional-card p {
    font-size: 0.85em !important;
  }
  
  .professional-card > div[style*="display: flex"][style*="gap: 1em"][style*="flex-wrap: wrap"] {
    font-size: 0.75em !important;
  }
  
  div[style*="text-align: center"][style*="padding: 4em"] {
    padding: 2em 1em !important;
  }
  
  div[style*="text-align: center"] i {
    font-size: 2em !important;
  }
  
  div[style*="text-align: center"] h2 {
    font-size: 1.2em !important;
  }
  
  div[style*="text-align: center"] a {
    width: 100% !important;
    display: block !important;
    padding: 0.7em 1em !important;
  }
}

/* ===== EDIT PROFILE PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .client-profile-container[style*="margin-left: 2em"] > .client-profile-container[style*="margin: 0 auto"] {
    margin-bottom: 2em !important;
  }
  
  .client-profile-right {
    width: 100% !important;
    margin: 0 !important;
  }
  
  .form[style*="max-width: 500px"] {
    max-width: 100% !important;
    padding: 0 1em !important;
  }
  
  .form > div[style*="display: flex"][style*="gap: 1em"] {
    flex-direction: column !important;
    gap: 0.8em !important;
  }
  
  .form > div[style*="display: flex"] button,
  .form > div[style*="display: flex"] a {
    width: 100% !important;
    text-align: center !important;
  }
  
  h2 {
    font-size: 1.3em !important;
  }
}

@media (max-width: 480px) {
  .client-profile-container[style*="margin-left: 2em"] {
    margin-left: 0.5em !important;
    margin-right: 0.5em !important;
  }
  
  .form[style*="max-width: 500px"] {
    padding: 0 0.5em !important;
  }
  
  .form input,
  .form textarea,
  .form select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  h2 {
    font-size: 1.1em !important;
  }
}

/* ===== ERROR PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .error-container {
    padding: 1.5em 1em !important;
    margin-top: 1em !important;
  }
  
  .error-container h1 {
    font-size: 1.5em !important;
  }
  
  .error-message {
    padding: 0.8em !important;
    margin: 0.8em 0 !important;
  }
  
  .error-message p {
    font-size: 1em !important;
  }
  
  .error-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8em !important;
    margin-top: 1.5em !important;
  }
  
  .error-actions .btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.7em 1em !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .error-container {
    padding: 1em 0.8em !important;
  }
  
  .error-container h1 {
    font-size: 1.3em !important;
  }
  
  .error-message p {
    font-size: 0.95em !important;
  }
  
  .error-actions .btn {
    padding: 0.6em 0.9em !important;
    font-size: 0.95em !important;
  }
}

