/* Enhanced Styles for Mahmoud Alnmisy Portfolio */
/* Import google fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* custom scroll bar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* all similar content styling codes */
section {
  padding: 100px 0;
}
.max-width {
  max-width: 1300px;
  padding: 0 80px;
  margin: auto;
}
.about,
.services,
.skills,
.teams,
.contact,
footer {
  font-family: "Poppins", sans-serif;
}
.about .about-content,
.services .serv-content,
.skills .skills-content,
.contact .contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
section .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: "Ubuntu", sans-serif;
}
section .title::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #111;
  transform: translateX(-50%);
}
section .title::after {
  position: absolute;
  bottom: -8px;
  left: 50%;
  font-size: 20px;
  color: crimson;
  padding: 0 5px;
  background: #fff;
  transform: translateX(-50%);
}

/* navbar styling */
.navbar {
  position: fixed;
  top: 15px;
  left: 20px;
  right: 20px;
  width: auto;
  z-index: 999;
  padding: 16px 0;
  font-family: "Ubuntu", sans-serif;
  transition: all 0.4s ease-in-out;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.navbar.sticky {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .logo a {
  color: #6EE7FF;
  font-size: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
}
.navbar .logo a img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 4px rgba(220, 20, 60, 0.4));
  transition: transform 0.3s ease;
}
.navbar .logo a:hover img {
  transform: scale(1.08);
}
.navbar .menu li {
  list-style: none;
  display: inline-block;
}
.navbar .menu li a {
  display: block;
  color: #6EE7FF;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}
.navbar .menu li a:hover {
  color: #a5f3fc;
  opacity: 1;
  transform: translateY(-1px);
}
.navbar.sticky .menu li a:hover {
  color: #a5f3fc;
}

/* menu btn styling */
.menu-btn {
  color: #6EE7FF;
  font-size: 23px;
  cursor: pointer;
  display: none;
}
.scroll-up-btn {
  position: fixed;
  height: 45px;
  width: 42px;
  background: crimson;
  right: 30px;
  bottom: 10px;
  text-align: center;
  line-height: 45px;
  color: #fff;
  z-index: 9999;
  font-size: 30px;
  border-radius: 6px;
  border-bottom-width: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.scroll-up-btn.show {
  bottom: 30px;
  opacity: 1;
  pointer-events: auto;
}
.scroll-up-btn:hover {
  filter: brightness(90%);
}

/* home section styling - UPDATED WITH NEW BACKGROUND */
.home {
  display: flex;
  position: relative;
  background: url("https://images.stockcake.com/public/3/b/0/3b06516a-21cb-4cda-ab20-f6da9ab2db13_large/glowing-developer-setup-stockcake.jpg") no-repeat center;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  min-height: 600px;
  color: #ffffff;
  font-family: "Ubuntu", sans-serif;
}

/* Dark overlay for better text readability */
.home-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.home .max-width {
  width: 100%;
  display: flex;
  position: relative;
  z-index: 2;
}
.home .max-width .row {
  margin-right: 0;
}
.home .home-content {
  padding-top: 100px;
}
.home .home-content .text-1 {
  font-size: 27px;
  margin-bottom: 10px;
}
.home .home-content .text-2 {
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
  margin-bottom: 10px;
}
.home .home-content .text-3 {
  font-size: 28px;
  margin: 5px 0 15px 0;
  line-height: 1.4;
}
.home .home-content .text-3 span {
  color: crimson;
  font-weight: 500;
}

/* Hero tagline with fade-in animation */
.hero-tagline {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 25px;
  max-width: 600px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home .home-content a.hire-btn {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 25px;
  padding: 12px 36px;
  margin-top: 20px;
  font-weight: 400;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}
.home .home-content a.hire-btn:hover {
  color: crimson;
  background: #fff;
}

/* Contact Bar - NEW ADDITION */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 25px;
  background: rgba(220, 20, 60, 0.2);
  white-space: nowrap;
}

.contact-item:hover {
  background: crimson;
  transform: translateY(-2px);
  color: #fff;
}

.contact-item i {
  font-size: 16px;
  color: crimson;
  transition: color 0.3s ease;
}

.contact-item:hover i {
  color: #fff;
}

.contact-item.cv-download {
  background: crimson;
  font-weight: 600;
}

.contact-item.cv-download i {
  color: #fff;
}

/* about section styling */
.about .title::after {
  content: "who i am";
}
.about .about-content .left {
  width: 45%;
}
.about .about-content .left .about-image-container {
  width: 400px;
  height: auto;
  margin: 40px auto;
  border: 2px solid #ddd;
  border-radius: 16px;
  transform: rotate(-2deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  overflow: hidden;
}
.about .about-content .left .about-image-container:hover {
  transform: scale(1.03) rotate(0deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.about .about-content .left img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.about .about-content .right {
  width: 55%;
}
.about .about-content .right p {
  text-align: justify;
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 17px;
  color: #333;
}
.about .about-content .right a.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: crimson;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 30px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}
.about .about-content .right a.cv-btn:hover {
  color: crimson;
  background: none;
}

/* ======= My Projects Section (Enhanced) ======= */
.projects-section {
  padding: 80px 20px;
  background: linear-gradient(to bottom right, #f0f2f5, #ffffff);
}
.projects-section .section-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #222;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}
.project-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.project-card img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin: 0 auto 18px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid #e0e0e0;
  transition: transform 0.3s ease;
}
.project-card:hover img {
  transform: scale(1.1);
}
.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.project-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.5;
  flex-grow: 1;
}
.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background-color: #0057d9;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto;
}
.project-card a:hover {
  background-color: #003f9e;
}

/* services section styling */
.services,
.teams {
  color: #fff;
  background: #111;
}
.services .title::before,
.teams .title::before {
  background: #fff;
}
.services .title::after,
.teams .title::after {
  background: #111;
  content: "what i provide";
}
.services .serv-content .card {
  width: calc(33% - 20px);
  background: #222;
  text-align: center;
  border-radius: 6px;
  padding: 50px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.services .serv-content .card:hover {
  background: crimson;
}
.services .serv-content .card .box {
  transition: all 0.3s ease;
}
.services .serv-content .card:hover .box {
  transform: scale(1.05);
}
.services .serv-content .card i {
  font-size: 50px;
  color: crimson;
  transition: color 0.3s ease;
}
.services .serv-content .card:hover i {
  color: #fff;
}
.services .serv-content .card .text {
  font-size: 25px;
  font-weight: 500;
  margin: 10px 0 7px 0;
}

/* skills section styling */
.skills .title::after {
  content: "what i know";
}
.skills .skills-content .column {
  width: calc(50% - 30px);
}
.skills .skills-content .left p {
  text-align: justify;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 16px;
}
.skills .skills-content .left a.skill-btn {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 16px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}
.skills .skills-content .left a.skill-btn:hover {
  color: crimson;
  background: none;
}

/* New skill list styling (flat, no bars) */
.skill-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}
.skill-item:hover {
  border-color: crimson;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.08);
  transform: translateX(5px);
}
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.skill-name {
  font-size: 17px;
  font-weight: 600;
  color: #222;
}
.skill-level {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.skill-level.advanced {
  background: rgba(220, 20, 60, 0.1);
  color: crimson;
}
.skill-level.intermediate {
  background: rgba(0, 87, 217, 0.1);
  color: #0057d9;
}
.skill-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* testimonials section styling */
.testimonials-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  text-align: center;
}
.testimonials-section .section-title {
  font-size: 32px;
  margin-bottom: 50px;
  color: #222;
  font-weight: bold;
}
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: left;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Testimonial header with avatar */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: crimson;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
}
.testimonial-author {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}
.testimonial-role {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

.testimonial-card blockquote {
  margin: 0;
}
.testimonial-text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  font-style: italic;
}

/* contact section styling */
.contact .title::after {
  content: "get in touch";
}

/* Contact Columns Layout */
.contact-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  align-items: start;
  margin-top: 40px;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Column Titles */
.contact-col-title {
  font-family: "Ubuntu", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 10px;
}

.contact-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: crimson;
  border-radius: 2px;
}

/* Left Column - Contact Info */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  border-color: crimson;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.08);
  transform: translateX(5px);
}

.contact-info-item i {
  font-size: 20px;
  color: crimson;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.contact-info-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-detail a {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  word-break: break-all;
}

.contact-info-detail a:hover {
  color: crimson;
}

/* Email-specific text improvements */
.email-item .contact-label {
  font-weight: 400;
}

.email-item .contact-info-detail {
  gap: 5px;
}

.email-item .contact-info-detail a {
  font-size: 14px;
}

/* Center Column - Branding */
.contact-brand-col {
  align-items: center;
  text-align: center;
}

.contact-logo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(220, 20, 60, 0.08);
  border: 3px solid crimson;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.contact-logo-wrap:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
}

.contact-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(17%) sepia(89%) saturate(6226%) hue-rotate(346deg) brightness(88%) contrast(99%);
}

.contact-name {
  font-family: "Ubuntu", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: crimson;
  margin: 0;
}

.contact-tagline {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  max-width: 280px;
  margin: 0;
}

/* Right Column - Social Links */
.contact-social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #eee;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-social-link:hover {
  background: crimson;
  color: #fff;
  border-color: crimson;
  transform: translateX(5px);
}

.contact-social-link i {
  font-size: 18px;
  color: crimson;
  width: 24px;
  text-align: center;
  transition: color 0.3s ease;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.contact-social-link:hover i {
  color: #fff;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: crimson;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  transition: all 0.3s ease;
}
.social-links a:hover {
  background: #111;
  transform: translateY(-3px);
}

/* footer section styling - UPDATED: Light background version */
footer {
  background: transparent;
  padding: 20px 23px;
  color: #333;
  text-align: center;
  border-top: 1px solid #ddd;
}

footer span a {
  color: crimson;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-tagline {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer span a:hover {
  text-decoration: underline;
  color: #fff;
}

/* responsive media query start */
@media (max-width: 1104px) {
  .about .about-content .left .about-image-container {
    width: 350px;
  }
}

@media (max-width: 991px) {
  .max-width {
    padding: 0 50px;
  }
  .contact-bar {
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
  }
  .contact-item {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 947px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-col {
    align-items: center;
    text-align: center;
  }
  .contact-info-list {
    width: 100%;
    max-width: 400px;
  }
  .contact-social-list {
    width: 100%;
    max-width: 400px;
  }
  .contact-social-link:hover {
    transform: translateX(0) scale(1.02);
  }
  .contact-info-item:hover {
    transform: translateX(0) scale(1.02);
  }
  .contact-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .contact-brand-col {
    order: -1;
  }
  .menu-btn {
    display: block;
    z-index: 999;
  }
  .menu-btn i.active:before {
    content: "\f00d";
  }
  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: -100%;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: all 0.3s ease;
  }
  .navbar .menu.active {
    left: 0;
  }
  .navbar .menu li {
    display: block;
  }
  .navbar .menu li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }
  .home .home-content .text-2 {
    font-size: 60px;
  }
  .home .home-content .text-3 {
    font-size: 24px;
  }
  .home .home-content a.hire-btn {
    font-size: 23px;
    padding: 10px 30px;
  }
  .max-width {
    max-width: 930px;
  }
  .about .about-content .column {
    width: 100%;
  }
  .about .about-content .left {
    display: flex;
    justify-content: center;
    margin: 0 auto 60px;
  }
  .about .about-content .right {
    flex: 100%;
  }
  .services .serv-content .card {
    width: calc(50% - 10px);
    margin-bottom: 20px;
  }
  .skills .skills-content .column,
  .contact .contact-content .column {
    width: 100%;
    margin-bottom: 35px;
  }
  .contact-bar {
    margin-top: 30px;
  }
  .navbar .logo a {
    font-size: 22px;
  }
  .navbar .logo a img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 690px) {
  .max-width {
    padding: 0 23px;
  }
  .home {
    min-height: 700px;
  }
  .home .home-content {
    padding-top: 80px;
  }
  .home .home-content .text-2 {
    font-size: 50px;
  }
  .home .home-content .text-3 {
    font-size: 22px;
  }
  .hero-tagline {
    font-size: 16px;
  }
  .home .home-content a.hire-btn {
    font-size: 20px;
    padding: 10px 25px;
  }
  .contact-bar {
    padding: 15px;
    gap: 8px;
  }
  .contact-item {
    font-size: 13px;
    padding: 6px 12px;
  }
  .contact-item span {
    display: none;
  }
  .contact-item i {
    font-size: 18px;
  }
  .services .serv-content .card {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .home .home-content .text-2 {
    font-size: 40px;
  }
  .home .home-content .text-3 {
    font-size: 20px;
  }
  .about .about-content .right p {
    font-size: 16px;
  }
  .about .about-content .left .about-image-container {
    width: 280px;
  }
  .contact .right form .fields {
    flex-direction: column;
  }
  .contact .right form .name,
  .contact .right form .email {
    margin: 0;
  }
  .scroll-up-btn {
    right: 15px;
    bottom: 15px;
    height: 38px;
    width: 35px;
    font-size: 23px;
    line-height: 38px;
  }
  .section-title {
    font-size: 28px !important;
  }
  .title {
    font-size: 32px !important;
  }
  .navbar .logo a {
    font-size: 20px;
  }
  .navbar .logo a img {
    width: 48px;
    height: 48px;
  }
  .testimonial-card {
    padding: 22px 18px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .scroll-up-btn,
  .contact-bar,
  .hire-btn {
    display: none !important;
  }
  .home {
    height: auto;
    min-height: 300px;
    background: #fff !important;
    color: #000 !important;
  }
  .home-overlay {
    display: none;
  }
  section {
    padding: 40px 0;
  }
}

