/* ================= ABOUT US PAGE TABLET RESPONSIVE STYLES ================= */

/* ================= TABLET RESPONSIVE STYLES (768px - 1199px) ================= */

@media (min-width: 768px) and (max-width: 1199px) {
  
  :root {
    --tablet-title-primary: clamp(1.4rem, 2.2vw, 1.8rem);
    --tablet-title-secondary: clamp(1.2rem, 1.8vw, 1.5rem);
    --tablet-title-tertiary: clamp(1rem, 1.4vw, 1.2rem);
    
    --tablet-text-large: clamp(0.9rem, 1.2vw, 1rem);
    --tablet-text-base: clamp(0.8rem, 1vw, 0.9rem);
    --tablet-text-small: clamp(0.7rem, 0.8vw, 0.8rem);
    
    --tablet-button-text: clamp(0.75rem, 0.9vw, 0.85rem);
    --tablet-form-text: clamp(0.8rem, 1vw, 0.9rem);
    
    --tablet-svg-small: clamp(16px, 2vw, 20px);
    --tablet-svg-medium: clamp(20px, 2.5vw, 24px);
    
    --tablet-spacing-tight: clamp(0.4rem, 0.8vw, 0.6rem);
    --tablet-spacing-normal: clamp(0.6rem, 1.2vw, 0.8rem);
    --tablet-spacing-loose: clamp(0.8rem, 1.6vw, 1.2rem);
  }
  
  :root {
    --container-width: calc(100% - 40px);
    --container-max-width: 1000px;
  }
  
  .container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    padding: 0;
    margin: 0 auto;
  }
  
  .about-hero__container,
  .services__container,
  .expertise__container,
  .gallery__container {
    width: var(--container-width) !important;
    max-width: var(--container-max-width) !important;
    margin: 0 auto !important;
  }
  
  section {
    padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  
  .about-hero {
    padding: clamp(3rem, 5vw, 4rem) 0 !important;
    overflow: hidden !important;
  }
  
  .about-hero__container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(2rem, 4vw, 3rem) !important;
    flex-wrap: nowrap !important;
    max-width: var(--container-max-width) !important;
  }
  
  .about-hero__content {
    flex: 1 !important;
    min-width: clamp(280px, 45%, 350px) !important;
    padding-right: clamp(20px, 3vw, 40px) !important;
    order: 1 !important;
  }
  
  .about-hero__image-container {
    flex: 1 !important;
    min-width: clamp(280px, 45%, 350px) !important;
    min-height: clamp(530px, 50vw, 450px) !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    order: 2 !important;
  }
  
  .about-hero__subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem) !important;
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #232323 !important;
  }
  
  .about-hero__title-wrapper {
    position: relative !important;
    margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem) !important;
  }
  
  .about-hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #e63946 !important;
    margin: 0 !important;
  }
  
  .about-hero__arrow {
    position: absolute !important;
    left: 0 !important;
    max-width: clamp(100px, 20vw, 150px) !important;
    width: auto !important;
    height: auto !important;
    margin: 20px 0;
  }
  
  .about-hero__text {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem) !important;
    line-height: 1.6 !important;
    color: #232323 !important;
    margin-top: clamp(4rem, 4vw, 5rem) !important;
    max-width: 600px !important;
  }
  
  .about-hero__image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* ================= STRENGTH BEHIND THE STEEL SECTION - TABLET ================= */
@media (min-width: 768px) and (max-width: 1199px) {
  .strength-behind-steel {
    padding: clamp(3rem, 5vw, 4rem) 0 !important;
    background-color: #fff !important;
    overflow: hidden !important;
  }
  
  .strength-behind-steel__container {
    width: var(--container-width) !important;
    max-width: var(--container-max-width) !important;
    margin: 0 auto !important;
  }
  
  .strength-behind-steel__content {
    text-align: left !important;
    width: 100% !important;
  }
  
  .strength-behind-steel__title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #e63946 !important;
    margin: 0 0 clamp(1rem, 2.5vw, 1.5rem) 0 !important;
  }
  
  .strength-behind-steel__hero-content {
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(1.5rem, 3vw, 2.5rem) !important;
    margin: clamp(2rem, 4vw, 3rem) 0 !important;
  }
  
  .strength-behind-steel__subtitle {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    color: #232323 !important;
    margin: 0 !important;
  }
  
  .strength-behind-steel__intro {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem) !important;
    line-height: 1.6 !important;
    color: #232323 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  

  
  .strength-behind-steel__cards-grid-apart {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: clamp(2rem, 3vw, 2.5rem) !important;
    margin: clamp(3rem, 5vw, 4rem) 0 !important;
  }

  .strength-behind-steel__cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: clamp(2rem, 3vw, 2.5rem) !important;
    margin: clamp(3rem, 5vw, 4rem) 0 !important;
  }
  
  .strength-behind-steel__card {
    background: var(--color-secondary) !important;
    border-radius: 0 !important;
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 3vw, 2.5rem) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
  
  .strength-behind-steel__card-icon {
    width: clamp(50px, 6vw, 60px) !important;
    height: clamp(50px, 6vw, 60px) !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem) !important;
    transition: all 0.3s ease !important;
  }
  
  .strength-behind-steel__card:hover .strength-behind-steel__card-icon {
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%) !important;
    transform: scale(1.1) !important;
  }
  
  .strength-behind-steel__card-icon-img {
    width: clamp(25px, 3vw, 32px) !important;
    height: clamp(25px, 3vw, 32px) !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
  }
  
  .strength-behind-steel__card:hover .strength-behind-steel__card-icon-img {
    filter: brightness(0) invert(1) !important;
  }
  
  .strength-behind-steel__card-title {
    font-size: clamp(1.2rem, 2vw, 1.4rem) !important;
    font-weight: 700 !important;
    color: #e63946 !important;
    margin: 0 0 clamp(1rem, 2vw, 1.5rem) 0 !important;
    line-height: 1.3 !important;
  }
  
  .strength-behind-steel__card-text {
    font-size: clamp(0.8rem, 1.2vw, 1rem) !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    margin: 0 !important;
    flex-grow: 1 !important;
  }
  
  .strength-behind-steel__team-highlights {
    margin: clamp(3rem, 5vw, 4rem) 0 !important;
  }
  
  .strength-behind-steel__highlights-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    font-weight: 700 !important;
    margin: 0 0 clamp(2rem, 4vw, 3rem) 0 !important;
  }
  
  .strength-behind-steel__stats-table {
    width: 100% !important;
    margin: 0 auto !important;
    background-color: var(--color-secondary) !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }
  
  .strength-behind-steel__stats-row {
    display: flex !important;
    width: 100% !important;
  }
  
  .strength-behind-steel__stats-cell {
    flex: 1 !important;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem) !important;
    text-align: left !important;
    position: relative !important;
    background-color: var(--color-secondary) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: clamp(0.8rem, 1.5vw, 1rem) !important;
  }
  
  .strength-behind-steel__stats-cell:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    top: 20% !important;
    right: 0 !important;
    bottom: 20% !important;
    width: 1px !important;
    background-color: #e63946 !important;
  }
  
  .strength-behind-steel__stats-text {
    font-size: var(--tablet-text-base) !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
  
  .strength-behind-steel__conclusion {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem) !important;
    line-height: 1.6 !important;
    color: #232323 !important;
    margin: clamp(2rem, 4vw, 3rem) 0 0 0 !important;
    font-style: italic !important;
    text-align: center !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ================= SERVICES SECTION - TABLET ================= */
@media (min-width: 768px) and (max-width: 1199px) {
  
  .services {
    padding: clamp(3rem, 5vw, 4rem) 0 !important;
    background-color: #fff !important;
  }
  
  .services__header {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
  }
  
  .services__title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #e63946 !important;
    position: relative !important;
    display: inline-block !important;
    max-width: 85% !important;
  }
  
  .services__corner-svg {
    position: absolute !important;
    top: 0 !important;
    right: clamp(-15px, -2vw, -20px) !important;
    width: var(--tablet-svg-small) !important;
    height: var(--tablet-svg-small) !important;
  }
  
  .services__carousel {
    position: relative !important;
    width: 100% !important;
    margin-top: clamp(1rem, 2.5vw, 1.5rem) !important;
  }
  
  .services__track {
    display: flex !important;
    gap: clamp(1rem, 2.5vw, 1.5rem) !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
    width: 100% !important;
  }
  
  .services__track::-webkit-scrollbar {
    display: none !important;
  }
  
  .service-card {
    flex: 0 0 auto !important;
    width: clamp(250px, 60vw, 280px) !important;
    min-width: clamp(240px, 55vw, 260px) !important;
    background-color: #232323 !important;
    padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1rem, 2.5vw, 1.5rem) !important;
    border-radius: 0 !important;
    text-align: left !important;
    scroll-snap-align: start !important;
    position: relative !important;
    height: clamp(160px, 35vw, 180px) !important;
    transition: background-color 0.3s ease !important;
    overflow: hidden !important;
  }
  
  .service-card__icon-wrapper {
    position: absolute !important;
    top: clamp(12px, 2.5vw, 16px) !important;
    right: clamp(12px, 2.5vw, 16px) !important;
    z-index: 2 !important;
  }
  
  .service-card__icon {
    width: clamp(28px, 6vw, 35px) !important;
    height: clamp(28px, 6vw, 35px) !important;
    object-fit: contain !important;
  }
  
  .service-card__title {
    font-size: clamp(1rem, 2.2vw, 1.3rem) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #e63946 !important;
    position: absolute !important;
    bottom: clamp(15px, 3vw, 20px) !important;
    left: clamp(15px, 3vw, 20px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 1 !important;
    max-width: 60% !important;
    line-height: 1.2 !important;
  }
  
  .service-card__text {
    font-size: clamp(0.65rem, 1.4vw, 0.8rem) !important;
    line-height: 1.3 !important;
    color: #fff !important;
    position: absolute !important;
    bottom: clamp(15px, 3vw, 20px) !important;
    left: clamp(15px, 3vw, 20px) !important;
    right: clamp(15px, 3vw, 20px) !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
    z-index: 2 !important;
  }
  
  .service-card:hover .service-card__title {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
  }
  
  .service-card:hover .service-card__text {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  
  .services__navigation {
    display: flex !important;
    justify-content: center !important;
    margin-top: clamp(1rem, 2.5vw, 1.5rem) !important;
    gap: clamp(8px, 1.5vw, 12px) !important;
  }
  
  .services__nav-dot {
    width: clamp(8px, 1.5vw, 10px) !important;
    height: clamp(8px, 1.5vw, 10px) !important;
    border-radius: 50% !important;
    background-color: rgba(230, 57, 70, 0.3) !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
  }
  
  .services__nav-dot--active {
    background-color: #e63946 !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  
  .expertise {
    background-color: #282828 !important;
    padding: clamp(3rem, 5vw, 4.5rem) 0 !important;
    color: #fff !important;
  }
  
  .expertise__container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: clamp(0.8rem, 1.5vw, 1.2rem) !important;
    flex-wrap: nowrap !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
  
  .expertise__content {
    flex: 1 1 62% !important;
    min-width: 0 !important;
    order: 1 !important;
    text-align: left !important;
  }
  
  .expertise__title {
    font-size: clamp(1.2rem, 2.4vw, 1.7rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #fff !important;
    margin: 0 !important;
    text-align: left !important;
  }
  
  .expertise__image {
    flex: 0 0 33% !important;
    max-width: 33% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2 !important;
  }
  
  .expertise__svg {
    width: 100% !important;
    max-width: clamp(280px, 25vw, 400px) !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  
  .gallery {
    padding: clamp(3rem, 5vw, 4rem) 0 !important;
    background-color: #fff !important;
  }
  
  .gallery__grid {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    grid-auto-rows: auto !important;
    grid-gap: clamp(12px, 2.5vw, 16px) !important;
    width: 100% !important;
  }
  
  .gallery__item {
    background-color: #ddd !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    min-height: clamp(180px, 35vw, 220px) !important;
    position: relative !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }
  
  .gallery__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transition: transform 0.3s ease !important;
  }
  
  .gallery__item--wide {
    grid-column: span 7 !important;
    min-height: clamp(200px, 40vw, 250px) !important;
  }
  
  .gallery__item--narrow {
    grid-column: span 5 !important;
    min-height: clamp(200px, 40vw, 250px) !important;
  }
  
  .gallery__item--medium {
    grid-column: span 4 !important;
    margin-top: clamp(12px, 2.5vw, 16px) !important;
    min-height: clamp(180px, 35vw, 220px) !important;
  }
  
  .gallery__vertical-stack {
    grid-column: span 4 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: clamp(12px, 2.5vw, 16px) !important;
    margin-top: clamp(12px, 2.5vw, 16px) !important;
  }
  
  .gallery__item--small {
    min-height: clamp(140px, 28vw, 170px) !important;
  }
  
  .gallery__item--large {
    grid-column: span 8 !important;
    min-height: clamp(292px, 58vw, 356px) !important;
    margin-top: clamp(12px, 2.5vw, 16px) !important;
  }
  
  .gallery__item:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 2 !important;
  }
  
  .gallery__item:hover .gallery__image {
    transform: scale(1.05) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header {
    width: 96%;
    height: clamp(60px, 8vw, 70px);
    margin: 10px auto;
    background: #1E1E1E;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    position: sticky;
    top: 10px;
  }
  
  .header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 3vw, 24px);
    height: 100%;
    position: relative;
  }
  
  .header__logo {
    height: clamp(32px, 6vw, 40px);
    width: auto;
    object-fit: contain;
  }
  
  .header__nav {
    display: none !important;
  }
  
  .header__menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    width: clamp(28px, 6vw, 32px);
    height: clamp(28px, 6vw, 32px);
    padding: 0;
    position: relative;
    z-index: 3;
    margin-left: auto;
  }
  
  .about-hero__container {
    gap: clamp(1.5rem, 3vw, 2.5rem) !important;
  }
  
  .about-hero__content {
    flex: 1 !important;
    min-width: clamp(260px, 42%, 320px) !important;
    padding-right: clamp(15px, 2.5vw, 30px) !important;
  }
  
  .about-hero__image-container {
    flex: 1 !important;
  }
  
  
  .services__title {
    max-width: 90% !important;
  }
  
  .service-card {
    width: clamp(230px, 55vw, 260px) !important;
    min-width: clamp(220px, 50vw, 240px) !important;
    height: clamp(150px, 32vw, 170px) !important;
  }
  
  .expertise__content {
    flex: 1 1 64% !important;
    order: 1 !important;
  }
  
  .expertise__image {
    flex: 0 0 31% !important;
    max-width: 31% !important;
    order: 2 !important;
  }
  
  .expertise__container {
    flex-direction: row !important;
    gap: clamp(0.6rem, 1.2vw, 1rem) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .header {
    width: 96%;
    height: clamp(65px, 7vw, 72px);
    margin: 10px auto;
    background: #1E1E1E;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    position: sticky;
    top: 10px;
  }
  
  .header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 3.5vw, 28px);
    height: 100%;
  }
  
  .header__logo {
    height: clamp(36px, 6vw, 42px);
    width: auto;
    object-fit: contain;
  }
  
  .header__nav {
    display: flex;
  }
  
  .header__nav-list {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 20px);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .header__nav-link {
    color: #fff;
    text-decoration: none;
    font-size: clamp(13px, 2.8vw, 16px);
    font-weight: 500;
    padding: clamp(8px, 2vw, 12px) clamp(12px, 2.5vw, 16px);
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
  }
  
  .header__nav-link:hover {
    color: var(--color-primary);
    text-decoration: none;
  }
  
  .header__menu-toggle {
    display: none;
  }
  
  :root {
    --container-width: calc(100% - 60px) !important;
  }
  
  .about-hero__container {
    gap: clamp(2.5rem, 4vw, 3.5rem) !important;
  }
  
  .about-hero__content {
    flex: 1 !important;
    min-width: clamp(320px, 47%, 400px) !important;
    padding-right: clamp(25px, 3.5vw, 40px) !important;
  }
  
  .about-hero__image-container {
    flex: 1 !important;
  }
  
  .service-card {
    width: clamp(270px, 65vw, 300px) !important;
    min-width: clamp(260px, 60vw, 280px) !important;
    height: clamp(170px, 38vw, 190px) !important;
  }
  
  .expertise__container {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .header__container {
    padding: 0 clamp(0px, 0.2vw, 2px);
    gap: clamp(16px, 3vw, 24px);
  }
  
  .header__nav-list {
    gap: clamp(8px, 1.8vw, 14px);
    margin-left: auto;
  }
  
  .header__nav-link {
    font-size: clamp(11px, 2.2vw, 14px);
    padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 12px);
  }
}