/* Mobile styles - max-width: 768px */
@media (max-width: 768px) {
  header {
    min-height: 80px;
  }

  html {
    scroll-padding-top: 100px;
  }

  body {
    padding-top: 80px;
  }

  header.navbar {
    padding: 0.75rem 0 !important;
    min-height: auto !important;
  }

  .navbar .container-fluid {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Adjust all full-height sections for 80px mobile header */
  .hero-section {
    height: calc(100vh - 80px);
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .navbar-brand {
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
  }

  .carousel-slide {
    width: calc((100vw - 20px) / 2);
  }

  /* Content row - stack on mobile */
  .hero-tagline-section {
    min-height: calc(100vh - 80px);
    height: auto;
    gap: clamp(0.5rem, 2vh, 2rem);
    padding: clamp(1rem, 3vh, 2rem) 1rem;
  }

  /* Flatten the structure: make content-row children direct children of hero-tagline-section */
  .content-row {
    display: contents;
  }

  .content-row__media {
    order: 0;
    width: 100%;
    max-width: 100%;
    max-height: 40vh;
    position: relative;
    z-index: 1;
  }

  .content-row__video {
    max-width: 100%;
    max-height: 40vh;
    object-fit: contain;
  }

  .tagline-slider {
    order: 1;
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content-row__text {
    order: 2;
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0.08));
    border-radius: 12px;
    border: 2px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 8px 32px rgba(23, 8, 44, 0.3);
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
  }

  .content-row__text {
    padding: clamp(0.75rem, 2vw, 2rem) !important;
  }

  .content-row__text h3 {
    font-size: clamp(0.85rem, 2.2vw, 1.25rem) !important;
    margin-top: clamp(0.5rem, 1.5vh, 2rem) !important;
    margin-bottom: clamp(0.3rem, 1vh, 0.8rem) !important;
  }

  .content-row__text p {
    font-size: clamp(0.75rem, 1.8vw, 0.95rem) !important;
    margin-bottom: clamp(0.5rem, 1.5vh, 2rem) !important;
    line-height: 1.4;
  }

  .content-row__text ul {
    margin-bottom: 0;
  }

  .content-row__text ul li {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem) !important;
    line-height: 1.5;
    padding-left: 1rem;
  }

  .rotating-text {
    order: -1;
  }

  /* Product features - overlay arrows on card for mobile */
  #product-features {
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    padding-top: 1vh;
  }

  #product-features > h2 {
    height: 4vh !important;
    margin-bottom: 0.5rem !important;
    font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  }

  .product-features__carousel-wrapper {
    gap: 0;
    position: relative;
    max-height: 90vh;
    flex: 1;
  }

  .product-features__arrow {
    position: absolute;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    z-index: 100;
    top: 50%;
  }

  .product-features__arrow--left {
    left: 10px;
  }

  .product-features__arrow--right {
    right: 10px;
  }

  .product-section {
    padding: clamp(0.75rem, 2vw, 1rem);
    max-width: 95%;
    height: 92%;
    margin: auto;
  }

  .product-section .col-md-7,
  .product-section .col-md-12 {
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  }

  .product-section h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
  }

  .product-section .text-uppercase {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .product-section ul li {
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    line-height: 1.4;
  }

  /* Process card - smaller circles, no arrows, wider content */
  .process-step__number {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .process-step__content {
    width: 95%;
    max-width: 95%;
    padding: 0.75rem 1rem;
  }

  .process-step__title {
    font-size: clamp(0.75rem, 2vw, 0.9rem) !important;
  }

  .process-arrow {
    display: none !important;
  }

  .show-more-btn {
    display: none !important;
  }

  /* Camera card - fix alignment and spacing */
  .product-section .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-items: center !important;
  }

  .camera-image-container {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .product-section .col-md-7 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .product-image {
    margin: 0.5rem auto !important;
    max-width: 50% !important;
    max-height: 40vh !important;
    object-fit: contain;
    display: block !important;
  }

  /* Process card - center align and bigger text */
  .process-flow-diagram {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    padding: 1rem 0.5rem !important;
    gap: clamp(0.75rem, 2vh, 1.25rem) !important;
  }

  /* Platform section - horizontal scroll for mobile */
  #platform {
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
  }

  /* Advantages section */
  .advantages {
    height: calc(100vh - 80px);
  }

  /* Remuneration section */
  .remuneration-section {
    min-height: calc(100vh - 80px);
  }

  #platform > p {
    font-size: 1rem;
    height: auto;
    padding: 0 1rem;
  }

  .platform__devices {
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding: 1rem;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .platform__devices::-webkit-scrollbar {
    height: 8px;
  }

  .platform__devices::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .platform__devices::-webkit-scrollbar-thumb {
    background: rgba(186, 104, 200, 0.6);
    border-radius: 10px;
  }

  .platform__devices img {
    flex: 0 0 auto;
    width: 70vw;
    max-width: 300px;
    min-width: 250px;
    height: auto;
    max-height: 50vh;
    scroll-snap-align: center;
  }

  #platform.visible .platform__devices img:nth-child(1),
  #platform.visible .platform__devices img:nth-child(2),
  #platform.visible .platform__devices img:nth-child(3) {
    flex: 0 0 auto;
    animation: fadeIn 0.6s ease-in-out forwards;
  }

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

  /* Advantages section - tabs for mobile */
  .advantages__title {
    font-size: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .advantages__grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Tabs navigation */
  .advantages__tabs {
    display: flex;
    gap: 0.5vw;
    padding: 0.5rem 11vw;
    border-bottom: 2px solid rgba(186, 104, 200, 0.3);
    flex-shrink: 0;
  }

  .advantages__tab {
    width: 11vw;
    height: 11vw;
    max-width: 60px;
    max-height: 60px;
    padding: 0;
    background: rgba(123, 31, 162, 0.15);
    border: 2px solid rgba(186, 104, 200, 0.3);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 6vw;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .advantages__tab.active {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.35), rgba(74, 20, 140, 0.25));
    border-color: #ba68c8;
    color: #ba68c8;
    box-shadow: 0 4px 15px rgba(186, 104, 200, 0.4);
  }

  /* Tab content */
  .advantages__carousel {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    transform-style: flat;
    perspective: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  .advantages__card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    max-width: 500px;
    height: auto;
    max-height: calc(100% - 2rem);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .advantages__card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .advantages__icon {
    font-size: 2.5rem;
    flex-shrink: 0;
  }

  .advantages__card-title {
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .advantages__card-text {
    font-size: 0.9rem;
    flex: 1;
    overflow-y: auto;
  }

  /* Target sections (audience and contracts) - adjust for mobile */
  .target-section {
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
  }

  .target-section__title {
    flex-shrink: 0;
    margin-bottom: 1rem;
  }

  .audience__grand-public,
  .audience__advertising {
    max-width: 100%;
    flex-shrink: 0;
  }

  .contracts__list {
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Remuneration section - accordion for mobile */
  .remuneration__title {
    font-size: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }

  .remuneration__grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem 1rem 1rem;
    overflow-y: auto;
    flex: 1;
  }

  .remuneration__card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: none;
  }

  .remuneration__card:hover {
    transform: none;
    box-shadow: none;
  }

  .remuneration__card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.15), rgba(74, 20, 140, 0.1));
    border: 2px solid rgba(186, 104, 200, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    position: relative;
  }

  .remuneration__card-title:hover {
    border-color: #ba68c8;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.25), rgba(74, 20, 140, 0.15));
  }

  .remuneration__card.active .remuneration__card-title {
    border-color: #ba68c8;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.35), rgba(74, 20, 140, 0.25));
    box-shadow: 0 4px 15px rgba(186, 104, 200, 0.4);
  }

  .remuneration__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .remuneration__toggle {
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ba68c8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .remuneration__card.active .remuneration__toggle {
    transform: rotate(45deg);
  }

  .remuneration__card-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.9rem;
    padding: 0 1.25rem;
    transition: all 0.3s ease;
    line-height: 1.6;
  }

  .remuneration__card.active .remuneration__card-text {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
  }

  .process-flow-diagram {
    padding: 1.5rem 0.5rem;
  }

  .process-step__number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .process-step__content {
    padding: 1.5rem 1.5rem;
  }

  .process-step__title {
    font-size: 1rem;
  }

  .process-arrow {
    height: 45px;
    margin: 0.75rem 0;
  }
}
