/* ====================================
   CUSTOM PORTFOLIO IMPROVEMENTS
   ==================================== */

/* Services Section - Equal Height Boxes */
.services .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.services .col-md-6 {
  display: flex;
  flex-direction: column;
}

.services .item {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  position: relative;
  box-sizing: border-box;
}

.services .item .icon-img-70 {
  flex-shrink: 0;
  margin-bottom: 30px;
}

.services .item h6 {
  flex-shrink: 0;
  margin-bottom: 15px;
}

.services .item p {
  flex: 1;
  margin-bottom: 0;
  min-height: 60px;
}

.services .item .bord-color {
  flex-shrink: 0;
  margin-top: auto;
  position: absolute;
  bottom: -1px;
  left: 4%;
  width: 92%;
}

/* Blog Section - Equal Height Cards */
.blog .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.blog .col-lg-4 {
  display: flex;
  flex-direction: column;
}

.blog .item {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}

.blog .item .img {
  flex-shrink: 0;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog .item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.blog .item .box {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.blog .item .cont {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.blog .item .cont h5 {
  flex: 1;
  margin-bottom: 0;
  min-height: 60px;
}

.blog .item .info {
  flex-shrink: 0;
  margin-top: auto;
}

/* Hero Section Enhancements */
.cta-buttons {
  margin-top: 2rem;
}

.main-colorbg {
  background: var(--maincolor);
  color: #000;
  border-color: var(--maincolor);
  transition: all 0.3s ease;
}

.main-colorbg:hover {
  background: transparent;
  color: var(--maincolor);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(200, 243, 29, 0.3);
}

/* Improved Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Fix Layout Shift for Animated Text - Prevent content shifting */
.intro-profile .content h1 .bord {
  /* Override existing styles to prevent layout shift */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 1.5em !important;
  height: 1.5em !important;
  line-height: 1.5em !important;
  vertical-align: baseline;
  position: relative;
  overflow: visible;
  white-space: nowrap;
  box-sizing: border-box;
  /* Set minimum width to accommodate longest text: "RESTful API Expert" */
  min-width: 300px !important;
  text-align: left;
  /* Maintain consistent padding - override from style.css */
  padding: 0 20px !important;
  /* contain removed - it caused vertical clipping of "RESTful API Expert" */
  /* Ensure consistent border */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ensure the text content inside maintains consistent positioning */
.intro-profile .content h1 .bord > *:not(i) {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.5em;
  min-height: 1.5em;
  margin: 0;
  padding: 0;
}

/* Keep the decorative i element positioned correctly */
.intro-profile .content h1 .bord i {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

/* Prevent the entire h1 line from shifting */
.intro-profile .content h1 {
  min-height: auto;
  line-height: 1.2;
  display: block;
  /* Ensure consistent spacing between lines */
  margin-bottom: 0;
  /* Allow wrapping on narrow viewports to prevent clipping (overflow-x: hidden on body) */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Ensure line breaks maintain consistent spacing */
.intro-profile .content h1 br {
  line-height: inherit;
  display: block;
  height: 0;
  margin: 0;
}

/* Responsive adjustments for animated text */
@media (max-width: 767px) {
  .intro-profile .content h1 .bord {
    min-width: 180px !important;
    min-height: 1.4em !important;
    height: 1.4em !important;
    line-height: 1.4em !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  .intro-profile .content h1 .bord > *:not(i) {
    line-height: 1.4em;
    height: 1.4em;
  }
  
  /* Less top space on mobile */
  .intro-profile .box-img {
    padding: 16px 16px 16px !important;
  }
  
  .intro-profile .box-img .cont {
    padding: 16px 12px !important;
  }
  
  .intro-profile .box-img .info.mt-30 {
    margin-top: 16px !important;
  }
  
  .intro-profile .box-img .social.mt-20 {
    margin-top: 12px !important;
  }
  
  .intro-profile .content {
    padding: 20px 24px 30px !important;
    text-align: center;
  }
  
  .intro-profile .content h1 {
    font-size: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .intro-profile .content h1 .bord {
    min-width: 120px !important;
    max-width: 100%;
    min-height: 1.3em !important;
    height: 1.3em !important;
    line-height: 1.3em !important;
    /* Force onto own line on mobile so "Engineer and" + bord doesn't overflow */
    display: block !important;
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.25em;
    text-align: center !important;
  }
  
  .intro-profile .content h1 .bord > *:not(i) {
    line-height: 1.3em;
    height: 1.3em;
  }
  
  /* Less top space on small mobile */
  .intro-profile .box-img {
    padding: 12px 12px 12px !important;
  }
  
  .intro-profile .box-img .cont {
    padding: 12px 10px 0px 10px !important;
  }
  
  .intro-profile .content {
    padding: 16px 20px 24px !important;
    text-align: center;
  }
  
  .intro-profile .content h1 {
    font-size: 1.35rem;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .intro-profile .content h1 .bord {
    min-width: 90px !important;
  }
  
  .intro-profile .content h1 {
    font-size: 1.2rem;
  }
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
}

p {
  line-height: 1.7;
}

/* Project Cards */
.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  /* transition: all 0.3s ease; */
}

.project-card:hover {
  /* transform: translateY(-5px); */
  border-color: rgba(200, 243, 29, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card .img img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.project-card:hover .img img {
  transform: scale(1.02);
}

/* Tech Badges */
.tech-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(200, 243, 29, 0.1);
  border: 1px solid rgba(200, 243, 29, 0.3);
  border-radius: 4px;
  font-size: 12px;
  color: var(--maincolor);
  margin: 0 6px 8px 0;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: rgba(200, 243, 29, 0.2);
  transform: translateY(-2px);
}

.outcome-item h5 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
}

/* Why Me Section */
.advantage-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
}

.advantage-card:hover {
  border-color: rgba(200, 243, 29, 0.5);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
}

.icon-emoji {
  font-size: 48px;
  display: block;
  line-height: 1;
}

.icon-image {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.growth-mindset {
  background: rgba(200, 243, 29, 0.05);
  border: 1px solid rgba(200, 243, 29, 0.2);
}

/* Skills Section - Tool Tags */
.tool-tag {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 5px 8px 0;
  background: rgba(200, 243, 29, 0.15);
  border-radius: 3px;
  font-size: 11px;
  color: var(--maincolor);
  border: 1px solid rgba(200, 243, 29, 0.2);
  transition: all 0.2s ease;
}

.tool-tag:hover {
  background: rgba(200, 243, 29, 0.25);
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: rgba(200, 243, 29, 0.9);
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(200, 243, 29, 1);
  transform: scale(1.05);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: mobileOverlayFadeIn 0.3s ease-out forwards;
}

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

/* Accessibility Improvements */
a:focus, 
button:focus,
.nav-item a:focus {
  outline: 2px solid var(--maincolor);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-item a:focus {
  background: rgba(200, 243, 29, 0.2);
}

/* Better Color Contrast */
body {
  color: #e0e0e0;
}

.opacity-7 {
  opacity: 0.85;
}

.sub-title {
  color: var(--maincolor);
  font-weight: 600;
}

/* Smooth Transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Coming Soon Section - Blog Details */
.coming-soon-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-content {
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.coming-soon-icon {
  animation: pulse 2s ease-in-out infinite;
}

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

.coming-soon-features .feature-item {
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
}

.coming-soon-features .feature-item:hover {
  border-color: rgba(200, 243, 29, 0.3);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
}

.coming-soon-features .feature-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.coming-soon-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.coming-soon-cta .butn {
  min-width: 180px;
}

/* Responsive Coming Soon */
@media (max-width: 767px) {
  .coming-soon-content {
    padding: 40px 20px;
  }
  
  .coming-soon-icon i {
    font-size: 60px !important;
  }
  
  .coming-soon-content h1 {
    font-size: 2rem !important;
  }
  
  .coming-soon-features .col-md-4 {
    margin-bottom: 2rem;
  }
  
  .coming-soon-cta {
    flex-direction: column;
  }
  
  .coming-soon-cta .butn {
    width: 100%;
    margin-left: 0 !important;
  }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Global responsive base: prevent overflow, scale images */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .sec-box {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  
  .price .item .type {
    min-width: 0 !important;
    max-width: 90%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
  }
  
  .price .item {
    margin-top: 40px;
    padding: 20px 16px;
  }
  
  .price .item .content .feat li {
    font-size: 14px;
    flex-wrap: wrap;
  }
  
  .contact .row {
    flex-direction: column;
  }
  
  .contact .col-lg-5,
  .contact .col-lg-7 {
    max-width: 100%;
    width: 100%;
  }
  
  .contact .sec-head .social-text {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .contact .sec-head .social-text .mr-30 {
    margin-right: 0;
  }
  
  .contact form input,
  .contact form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .contact form .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .testimonials .pad-left {
    padding-left: 24px;
  }
  
  .testimonials .cont p {
    font-size: 1rem;
  }
  
  .butn.butn-md {
    padding: 12px 28px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .portfolio .item .img > a,
  .portfolio .item .img {
    height: 280px;
  }
  
  .portfolio .item .img img {
    object-fit: cover;
  }
  
  .intro-profile .box-img .img img {
    max-width: 100%;
    height: auto;
  }
  
  .intro-profile .box-img .img .icon {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
  
  .intro-profile .box-img .img .icon img {
    max-width: 100%;
  }
  
  .intro-profile .box-img .img .icon:nth-of-type(1) {
    left: -10px;
    top: 20px;
  }
  .intro-profile .box-img .img .icon:nth-of-type(2) {
    right: -10px;
  }
  .intro-profile .box-img .img .icon:nth-of-type(3) {
    left: 10px;
    bottom: 0;
  }
  
  .sec-head.mb-80 {
    margin-bottom: 50px !important;
  }
  
  .section-padding {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  
  footer.pb-30.pt-30 {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  
  footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  footer .fz-13 {
    font-size: 13px !important;
    word-wrap: break-word;
  }
  
  /* Mobile menu panel - slide-in drawer */
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
    z-index: 999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
    border-left: 3px solid transparent;
    border-radius: 12px 0 0 12px;
    display: flex !important;
    flex-direction: column;
  }
  
  .navbar.mobile-open {
    right: 0;
    display: flex !important;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    border-left-color: var(--maincolor);
  }
  
  /* Mobile menu header: close button pinned to top right corner of panel */
  .mobile-menu-header {
    position: relative;
    flex-shrink: 0;
    min-height: 52px;
  }
  
  .mobile-menu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  }
  
  .mobile-menu-close:hover {
    background: rgba(200, 243, 29, 0.2);
    color: var(--maincolor);
    transform: scale(1.05);
  }
  
  .mobile-menu-close:active {
    transform: scale(0.98);
  }
  
  .mobile-menu-close:focus {
    outline: 2px solid var(--maincolor);
    outline-offset: 2px;
  }
  
  .mobile-menu-close .pe-7s-close {
    font-size: 22px;
    display: block;
    line-height: 1;
  }
  
  /* Nav items container - with top padding */
  .navbar .row.rest {
    margin: 0;
    padding: 16px 0 24px;
    flex: 1;
    min-height: 0;
  }
  
  .navbar .col-lg-8.rest {
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
  }
  
  .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 16px !important;
    margin: 0 !important;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(12px);
    animation: mobileMenuItemIn 0.4s ease forwards;
  }
  
  .navbar.mobile-open .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.05s; }
  .navbar.mobile-open .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.1s; }
  .navbar.mobile-open .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.15s; }
  .navbar.mobile-open .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.2s; }
  .navbar.mobile-open .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.25s; }
  .navbar.mobile-open .navbar-nav .nav-item:nth-child(6) { animation-delay: 0.3s; }
  
  @keyframes mobileMenuItemIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .navbar-nav .nav-item a {
    display: block;
    padding: 16px 18px;
    width: 100%;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: #e8e8e8;
    transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
    border-radius: 8px;
    margin: 2px 0;
  }
  
  .navbar-nav .nav-item a:hover {
    background: rgba(200, 243, 29, 0.12);
    color: var(--maincolor);
    padding-left: 24px;
  }
  
  .navbar-nav .nav-item a:focus {
    background: rgba(200, 243, 29, 0.15);
    outline-offset: 2px;
  }
  
  .intro-profile .row {
    flex-direction: column;
  }
  
  .intro-profile .col-lg-4,
  .intro-profile .col-lg-8 {
    width: 100%;
    max-width: 100%;
  }
  
  /* Reduce top space on tablet – profile section */
  .intro-profile .box-img {
    padding: 24px 24px 20px !important;
  }
  
  .intro-profile .box-img .cont {
    padding: 20px 15px 0px 15px !important;
    min-height: auto;
    text-align: center;
  }
  
  .intro-profile .box-img .info.mt-30 {
    margin-top: 20px !important;
  }
  
  .intro-profile .box-img .social.mt-20 {
    margin-top: 14px !important;
  }
  
  .intro-profile .content {
    padding: 24px 24px 40px !important;
    text-align: center;
  }
  
  .intro-profile .content h1 {
    font-size: 1.75rem;
    text-align: center;
  }
  
  .intro-profile .content h1 .bord {
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  .intro-profile .cta-buttons {
    justify-content: center;
  }
  
  .intro-profile .cta-buttons .d-flex {
    justify-content: center;
  }
  
  .intro-profile .stauts {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  
  .intro-profile .stauts > .d-flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
  }
  
  .intro-profile .stauts .mr-40 {
    margin-right: 0 !important;
    margin-bottom: 0;
  }
  
  .project-card .row {
    flex-direction: column;
  }
  
  .project-card .col-lg-5,
  .project-card .col-lg-7 {
    width: 100%;
    max-width: 100%;
  }
  
  .project-card .img {
    margin-bottom: 30px;
  }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
  h1 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .cta-buttons .d-flex {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch !important;
  }
  
  .cta-buttons .butn {
    flex: 1;
    min-width: 0;
    width: auto;
    text-align: center;
    margin-bottom: 0;
  }
  
  /* Stats section: center and smaller numbers on mobile */
  .intro-profile .stauts,
  .intro-profile .content .stauts {
    text-align: center;
  }
  .intro-profile .stauts > .d-flex {
    justify-content: center;
    flex-wrap: wrap;
  }
  .intro-profile .stauts .mr-40,
  .intro-profile .content .stauts .mr-40 {
    text-align: center;
  }
  .intro-profile .stauts .mr-40 .d-flex,
  .intro-profile .content .stauts .mr-40 .d-flex {
    justify-content: center;
    text-align: center;
  }
  .intro-profile .stauts h2,
  .intro-profile .content .stauts h2 {
    font-size: 1.75rem !important;
    font-weight: 700;
  }
  .intro-profile .stauts p,
  .intro-profile .content .stauts p {
    white-space: nowrap;
  }
  .intro-profile .stauts .butn-presv {
    justify-content: center;
    display: flex;
  }
  
  .project-card {
    padding: 20px;
  }
  
  .advantage-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .tech-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .growth-mindset {
    padding: 30px 20px !important;
  }
  
  .outcome-item {
    margin-bottom: 15px;
  }
  
  /* Services - Equal heights on mobile */
  .services .row {
    display: flex;
    flex-direction: column;
  }
  
  .services .col-md-6 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .services .item {
    min-height: 250px;
  }
  
  /* Blog - Equal heights on mobile */
  .blog .row {
    display: flex;
    flex-direction: column;
  }
  
  .blog .col-lg-4 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .blog .item {
    height: auto;
    min-height: auto;
  }
  
  .blog .item .img {
    height: 200px;
  }
  
  .blog .item .cont h5 {
    min-height: auto;
  }
  
  /* Mobile: section padding and containers */
  .sec-box {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .sec-head.mb-80 {
    margin-bottom: 36px !important;
  }
  
  .section-padding {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  /* Buttons: touch-friendly (min 44px), full width where stacked */
  .butn,
  .butn.butn-md,
  .butn.butn-sm {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
  
  .cta-buttons .butn-presv .butn {
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .price .item .butn-presv .butn,
  .price .item a.butn {
    width: 100%;
    min-height: 48px;
  }
  
  .contact form button[type="submit"] {
    min-height: 48px;
    width: 100%;
    padding: 14px 24px;
  }
  
  /* Profile: image and icons scale on mobile */
  .intro-profile .box-img .img {
    max-width: 100%;
    overflow: hidden;
  }
  
  .intro-profile .box-img .img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .intro-profile .box-img .img .icon {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
  
  .intro-profile .box-img .img .icon img {
    width: 100%;
    height: auto;
  }
  
  .intro-profile .box-img .img .icon:nth-of-type(1) {
    left: 5px;
    top: 10px;
  }
  
  .intro-profile .box-img .img .icon:nth-of-type(2) {
    right: 5px;
  }
  
  .intro-profile .box-img .img .icon:nth-of-type(3) {
    left: 10px;
    bottom: 5px;
  }
  
  /* Portfolio: flexible image height on mobile */
  .portfolio .item .img > a,
  .portfolio .item .img {
    height: 220px;
    min-height: 200px;
  }
  
  .portfolio .item .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .project-card .img,
  .project-card .img a {
    overflow: hidden;
  }
  
  .project-card .img img {
    max-width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: cover;
  }
  
  /* Text: prevent overflow, readable sizes */
  .sec-head h3,
  .sec-head h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .sec-head .fz-50 {
    font-size: 1.5rem !important;
  }
  
  .price .item .amount h2 {
    font-size: 1.75rem;
  }
  
  .price .item .amount .fz-20 {
    font-size: 14px;
  }
  
  .price .item .amount sub {
    display: block;
    margin-top: 2px;
  }
  
  .contact .sec-head .phone.fz-30 {
    font-size: 1.25rem;
  }
  
  .contact .sec-head .phone a {
    word-break: break-all;
  }
  
  .testimonials .cont p.fz-20 {
    font-size: 1rem;
  }
  
  .testimonials .icon-qoute {
    font-size: 80px !important;
  }
  
  footer.pb-30.pt-30 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  
  footer .fz-13 {
    font-size: 12px !important;
    padding: 0 8px;
  }
  
  /* Contact form: full width inputs on mobile */
  .contact form .controls .form-group input,
  .contact form .controls .form-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .contact form .controls .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Go-more / View All button */
  .go-more .butn {
    min-height: 44px;
  }
  
  .sec-head .row.justify-content-center + .row,
  .portfolio .sec-head .go-more {
    justify-content: flex-start;
  }
  
  .portfolio .sec-head .row .col-lg-6:last-child {
    margin-top: 16px;
  }
  
  /* Single project / blog pages */
  .main-post .main-img img,
  .main-post .iner-img img,
  .single-project-page img,
  .single-project-page .project-content img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .coming-soon-cta .ml-20 {
    margin-left: 0 !important;
  }
  
  .coming-soon-cta .butn {
    min-height: 44px;
  }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
  .nav-top.pt-30 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  
  .navbar {
    width: min(100%, 320px);
    max-width: 100%;
  }
  
  .mobile-menu-header {
    min-height: 48px;
  }
  
  .mobile-menu-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .mobile-menu-close .pe-7s-close {
    font-size: 20px;
  }
  
  .navbar-nav .nav-item a {
    padding: 14px 16px;
    font-size: 13px;
  }
  
  .mobile-menu-toggle {
    top: 15px;
    right: 15px;
    padding: 10px;
  }
  
  .mobile-menu-toggle span {
    width: 22px;
  }
  
  .intro-profile .stauts h2,
  .intro-profile .content .stauts h2 {
    font-size: 1.75rem;
  }
  
  .intro-profile .stauts p,
  .intro-profile .content .stauts p {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .intro-profile .stauts > .d-flex {
    gap: 12px 16px;
  }
  
  .sec-head {
    margin-bottom: 40px !important;
  }
  
  .section-padding {
    padding: 40px 0 !important;
  }
  
  /* Small mobile: CTA buttons stack full width */
  .cta-buttons .d-flex.butn-presv {
    flex-direction: column !important;
    width: 100%;
    gap: 12px !important;
  }
  
  .cta-buttons .butn-presv .butn {
    width: 100% !important;
    min-height: 48px;
  }
  
  .intro-profile .stauts .butn-presv .butn {
    width: 100%;
    min-height: 48px;
  }
  
  .sec-box {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .project-card {
    padding: 16px;
  }
  
  .project-card .content h4 {
    font-size: 1.1rem;
  }
  
  .project-card .content p.fz-15 {
    font-size: 14px;
  }
  
  .outcome-item h5 {
    font-size: 14px;
  }
  
  .tech-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .price .item {
    padding: 16px 12px;
  }
  
  .price .item .type {
    font-size: 12px;
    padding: 8px 14px;
  }
  
  .price .item .content .feat li {
    font-size: 13px;
  }
  
  .contact form button[type="submit"] {
    min-height: 48px;
  }
  
  .navbar-nav .nav-item a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  
  .coming-soon-cta {
    flex-direction: column;
    gap: 12px;
  }
  
  .coming-soon-cta .butn {
    width: 100%;
    margin-left: 0 !important;
    min-height: 48px;
  }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  .mobile-menu-toggle,
  .navbar,
  .mobile-menu-overlay {
    display: none !important;
  }
  
  .project-card,
  .advantage-card {
    break-inside: avoid;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .tech-badge,
  .tool-tag {
    border-width: 2px;
  }
  
  .project-card,
  .advantage-card {
    border-width: 2px;
  }
}

