/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6600;
    --secondary-color: #2c3e50;
    --text-primary: #1a1a1a;
    --text-secondary: #1a1a1a;
    --text-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --bg-dark: rgba(0, 0, 0, 0.8);
    --border-light: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Utility classes */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    background: var(--bg-light);
    font-family: 'Heebo', 'Inter', sans-serif;
    direction: rtl;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    padding-top: 10vh; /* Account for fixed header */
    min-height: 100vh;
}

/* ALL MEDIA ADJUSTMENTS - FROM HERE */

@media (min-width: 1080px) {
 .services-grid.knowledge-cards-grid {
    grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .main-nav > ul.nav-grid { 
    --nav-gap: 1.5rem; 
    row-gap: 0.5rem;
    font-size: 0.9rem;
  }
  .logo { height: 3rem; }
  
  /* PREMIUM QUANTUM HERO Mobile - Small screens */
  .hero-subtitle-small {
    font-size: 1rem !important;
    letter-spacing: 0.12em;
  }
  
  .hero-title-main {
    font-size: 2.5rem !important;
    line-height: 1.1;
  }
  
  .hero-titles-container {
    margin-bottom: 2.5rem;
  }
  
  .premium-hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .options-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .about-timeline { --card-w: 240px; }
  .about-tl-rail { padding-inline: 2.25rem; }
  .about-tl-rail::before { right: 2.25rem; left: 2.25rem; }
  
  /* PREMIUM QUANTUM HERO Mobile */
  .hero-subtitle-small {
    font-size: 1.1rem !important;
    letter-spacing: 0.13em;
  }
  
  .hero-title-main {
    font-size: 2.8rem !important;
    line-height: 1.1;
  }
  
  .hero-titles-container {
    margin-bottom: 2.2rem;
  }
  
  .hero-text-content {
    gap: 2rem;
  }
  
  .premium-hero-description {
    font-size: 1.15rem;
  }
}

@media (min-width: 769px) {
  /* Ensure desktop navigation is always visible on larger screens */
  .main-nav {
    display: block !important;
  }
  
  .mobile-header {
    display: none !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
  }
  
  .services-grid {
    grid-template-columns: repeat(1, minmax(450px, 1fr)) !important;
  }
  /* Hero adjustments */
  .hero-title {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .hero-overlay  {
      padding: 4rem 0;
  }
  
  .tech-stats {
    grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
    padding: 0rem 1rem;
  }
}

@media (max-width: 768px) {
    /* Hide desktop nav, show mobile nav */
    .main-nav {
        display: none !important;
    }
    
    .hero-overlay  {
        padding: 1px;
    }

    .hero-overlay .container {
        padding: 0 2rem;
    }

    
    /* PREMIUM QUANTUM HERO Mobile - Very Small screens */
    .hero-subtitle-small {
        font-size: 0.9rem !important;
        letter-spacing: 0.1em;
    }
    
    .hero-title-main {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }
    
    .hero-titles-container {
        margin-bottom: 2rem;
    }
    
    .hero-text-content {
        gap: 1.8rem;
    }
    
    .premium-hero-description {
        font-size: 1.05rem;
        line-height: 1.5;
    }
    
    .premium-hero-cta .button-text {
        font-size: 1rem !important;
    }
    
    .mobile-header {
        display: flex !important;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1rem;
    }

    .card-icon i {
        font-size: 2rem;
    }
    
    .social-fixed .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Modal mobile optimization */
    .modal-container {
        width: 95%;
        max-height: 85vh;
        margin: 2.5vh auto;
        border-radius: 15px;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        font-size: 0.9rem;
        overflow: hidden;
        overflow-y: scroll;
    }
    
    .modal-close {
        position: fixed !important;
        top: 0.5rem !important;
        left: 0.5rem !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid #fff !important;
        border-radius: 50% !important;
        color: #fff !important;
        font-size: 16px !important;
        z-index: 1000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    .modal-close:hover {
        background: rgba(255, 0, 0, 0.8) !important;
        border-color: #fff !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .container {
        padding: 0 1rem;
    }

    .tech-stats {
    display: grid;
    grid-template-columns: repeat(1, minmax(220px, 1fr)) !important;
    gap: 1.5rem;
    width: 100%;
    max-width: none;
    margin: 2rem 0;
    text-align: center;
    direction: rtl;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      width: 100%;
      max-width: none;
      margin: 2rem 0;
      text-align: center;
      direction: rtl;
    }

    .onboarding-content{
      justify-content:unset;
    }

    /* Questionnaire mobile scrolling fix */
    .onboarding-content:has(.question-container),
    .onboarding-content.questionnaire-screen {
        justify-content: unset !important;
        align-items: unset !important;
        display: block !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Onboarding mobile fix for layout squeeze */
    .onboarding-container {
        max-width: 100% !important;
        width: 100vw !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 15px !important; /* Rounded on mobile */
    }

    /* Intro screen mobile adjustments */
    .intro-screen {
        padding: 2rem 1.5rem !important;
        min-height: calc(100vh - 120px) !important;
    }
    
    .intro-screen img {
        max-width: 280px !important;
        width: 80% !important;
        border-radius: 20px !important;
    }
    
    .intro-screen h2 {
        font-size: 1.7rem !important;
        margin-bottom: 1.2rem !important;
    }
    
    .intro-screen p {
        font-size: 1.1rem !important;
    }
    
    .intro-screen button {
        padding: 1.2rem 2.5rem !important;
        font-size: 1.1rem !important;
        min-width: 250px !important;
    }
 
    .container { padding: 0 1.5rem; }
    .options-grid { grid-template-columns: 1fr; }

    .register-screen {
      position: relative;         /* back in flow */
    }
 
    .about-title { font-size: 2.2rem; }
    .about-subtitle { font-size: 1.1rem; padding: 0 1rem; }
    .timeline-line { display: none; }
    .timeline-item { flex-direction: column !important; margin-bottom: 2rem; width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important;}
    .timeline-content { width: 100% !important; margin: 0 auto; }
    .timeline-dot { display: none; }

    .exec-profile { flex-direction: column; text-align: center; }
    .exec-photo-container { align-self: center; }
    .exec-photo { width:95px; height:95px; display:block; margin: 0; }
    .team-content { padding: 1rem; }
    .executive-showcase { padding: 2rem 1rem; }
    .exec-skills { justify-content: center; }

    .contact-title {
      font-size: 2.2rem;
    }
  
    .communication-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .contact-content {
      padding: 1.5rem;
    }
    
    .contact-methods,
    .contact-form-section {
      padding: 1.5rem;
    }
    
    .method-item {
      padding: 0.8rem;
    }
    
    .contact-methods-quick {
      grid-template-columns: 1fr 1fr;
    }

    /* Hero adjustments */
    .hero-title {
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
  
      /* Hide footer and contact info on mobile - Override any previous rules */
    .bottom-bar {
      display: none !important;
    }
  
    .contact-fixed {
      display: none !important;
    }
  
    /* Reposition social icons for mobile - Override any previous rules */
    .social-fixed {
      position: fixed !important;
      bottom: auto !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      top: calc(50% + 8rem) !important; /* Position 4rem below the CTA button area */
      flex-direction: row !important;
      gap: 1rem !important;
      z-index: 1000 !important;
      right: auto !important; /* Override any right positioning */
      transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    /* Enhanced mobile menu experience */
    .mobile-menu-backdrop.active {
      background: rgba(0, 0, 0, 0.8) !important; /* Stronger dimming effect */
      backdrop-filter: blur(2px) !important; /* Add blur for better focus */
    }
    
    /* Hide social icons when mobile menu is active */
    body.mobile-menu-open .social-fixed {
      opacity: 0 !important;
      visibility: hidden !important;
    }
    
    /* Ensure accessibility bar remains visible above menu backdrop */
    #a11y-toolbar {
      top: 70%;
      z-index: 10000 !important; /* Higher than menu backdrop (999) and menu (1000) */
    }
    
    /* Accessibility toolbar mobile adjustments */
    #a11y-toolbar .a11y-btn {
      top: 70%;
    }
    
    #a11y-toolbar .a11y-panel {
      overflow: visible !important;
      max-height: 50vh;
      flex-direction: column;
    }
    
    #a11y-toolbar .a11y-list {
      overflow-y: scroll !important;
      max-height: 30vh;
      scrollbar-width: inherit;
    }
    
    /* Consent checkboxes mobile responsiveness */
    .consent-container .consent-item {
      padding: 0.6rem !important;
      margin-bottom: 0.6rem !important;
      gap: 0.5rem !important;
    }
    
    .consent-container label {
      font-size: 13px !important;
      line-height: 1.25 !important;
    }
    
    .consent-container .custom-checkbox {
      margin-top: 0.05rem !important;
    }
}

@media (max-width: 560px) {
  .options-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .about-timeline { --card-w: 82vw; }
  .about-tl-rail { padding-inline: 1.75rem; }
  .about-tl-rail::before { right: 1.75rem; left: 1.75rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .contact-title {
    font-size: 1.8rem;
  }
  
  .contact-methods-quick {
    grid-template-columns: 1fr;
  }
  
  .method-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  /* Hide footer and contact info on mobile */
  .bottom-bar {
    display: none !important;
  }
  
  .contact-fixed {
    display: none !important;
  }
  
  /* Reposition social icons for mobile */
  .social-fixed {
    position: fixed;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% + 8rem); /* Position 4rem below the CTA button area */
    flex-direction: row;
    gap: 1rem;
    z-index: 1000;
  }

  /* Hero adjustments */
  .hero-title {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  
  /* Consent checkboxes smaller screens */
  .consent-container .consent-item {
    padding: 0.5rem !important;
    gap: 0.4rem !important;
  }
  
  .consent-container label {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 1029px) {
    .steps-grid.marketing-methodology-grid {
        grid-template-columns: repeat(1, minmax(125px, 1fr)) !important;
    }
}

@media (min-width: 1030px) {
    .steps-grid.marketing-methodology-grid {
        grid-template-columns: repeat(3, minmax(125px, 1fr)) !important;
    }
}

@media (min-width: 391px) and (max-width: 1070px) {
  /* Mobile navigation active in this range */
  .main-nav {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
  }
}

@media (min-width: 391px) and (max-width: 768px) {
  /* Hero mobile optimization */
  .hero-section {
    padding: 1rem;
  }

  /* Hero adjustments */
  .hero-title {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .cta-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .button-text {
    font-size: 0.9rem;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: none;
    margin: 2rem 0;
    text-align: center;
    direction: rtl;
  }

  /* Hide footer and contact info on mobile */
  .bottom-bar {
    display: none !important;
  }

  .contact-fixed {
    display: none !important;
  }

  /* Reposition social icons for mobile */
  .social-fixed {
    position: fixed;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% + 8rem); /* Position 4rem below the CTA button area */
    flex-direction: row;
    gap: 1rem;
    z-index: 1000;
  }
}

@media (min-width: 768px) and (max-width: 1070px) {
  .mobile-logo {
    height: calc(10vh * 0.7) !important;
    max-height: 50px !important;
    min-height: 40px !important;
    width: auto !important;
  }
}

@media (min-width: 391px) and (max-width: 480px) {
    /* Top bar adjustments for other small phones */
    .top-bar {
        height: 12vh;
    }
    
    .main-nav > ul.nav-grid {
        font-size: 0.7rem;
        column-gap: 0.3rem;
    }
    
    .logo { height: 2rem; }
    
    /* Hero section adjustments */
    .hero-section {
        padding: 0.5rem;
    }

    /* Hero adjustments */
    .hero-title {
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    } 
        
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 25px;
        min-width: 220px;
    }
    
    /* Grid adjustments */
    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .category-card {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .category-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .category-card p {
        font-size: 0.8rem;
    }
    
    .card-icon i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    
    /* Social links very small screens */
    .social-fixed .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Contact bar very small screens */
    .contact-fixed {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .contact-fixed .contact-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Modal very small screens */
    .modal-container {
        width: 98%;
        max-height: 90vh;
        margin: 1vh auto;
        border-radius: 10px;
    }
    
    .modal-content {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Onboarding mobile optimization */
    .onboarding-container {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 12px !important; /* Rounded on smaller screens */
    }
    
    .onboarding-header {
        padding: 1rem;
    }
    
    /* Questionnaire small screen fix */
    .onboarding-content:has(.question-container),
    .onboarding-content.questionnaire-screen {
        justify-content: unset !important;
        align-items: unset !important;
        display: block !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .onboarding-navigation {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Question container mobile */
    .question-container {
        max-width: 100%;
    }
    
    .question-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        margin-top: 0;
    }
    
    .question-title:first-of-type {
        margin-top: 0;
    }

    .question-title:not(:first-of-type) {
        margin-top: 2rem;
    }

    /* Questionnaire button mobile */
    .question-container + div {
        margin-top: 1.5rem;
    }
    
    .question-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      width: 100%;
      max-width: none;
      margin: 2rem 0;
      text-align: center;
      direction: rtl;
    }
    
    .options-grid {
        gap: 0.75rem;
    }
    
    .option-card {
        padding: 1rem;
        font-size: 0.9rem;
        min-height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .option-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .option-description {
        font-size: 0.85rem;
    }
    
    /* Navigation buttons mobile */
    .nav-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

@media (max-width: 390px) {
    /* CRITICAL: Prevent horizontal overflow */
    html, body {
      overflow-x: hidden !important;
      max-width: 100vw !important;
      position: relative;
    }
    
    * {
      box-sizing: border-box !important;
    }
    
    /* Remove the problematic transform completely */
    .top-bar .container {
      transform: none !important;
      padding-inline: 0.8rem;
      max-width: 100%;
      overflow: hidden;
    }
    
    /* Mobile navigation active for smallest screens */
    .main-nav {
      display: none !important;
    }
    
    .mobile-header {
      display: flex !important;
    }
    
    .mobile-logo {
      height: 2.5rem;
    }

    /* Top bar adjustments - reduced height since we fixed navigation */
    .top-bar {
        height: 8vh;
        min-height: 60px;
    }
    
    /* Hero section adjustments - more space since nav is smaller */
    .hero-section {
        padding: 1rem 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Hero adjustments */
    .hero-title {
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .hero-subtitle {
        max-width: 100%;
        padding: 0 1rem;
    }
        
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 30px;
        min-width: 240px;
        max-width: 85vw;
        margin: 0 auto;
        display: block;
    }
    
    /* Category grid optimized for iPhone 13 Pro */
    .category-grid {
        min-height: 35vh;
        padding: 1rem 0.5rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
        max-width: 100%;
    }
    
    .category-card {
        padding: 1rem;
        border-radius: 12px;
        min-height: 120px;
    }
    
    .category-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .card-icon i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    
    /* Fix modal positioning - full screen on iPhone 13 Pro */
    .modal-overlay {
        padding: 0;
    }
    
    .modal-container {
        width: 100vw;
        height: 100svh;
        height: 100dvh;
        height: 100vh;
        max-height: 100svh;
        max-height: 100dvh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .modal-content {
        flex: 1;
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-width: unset;
        max-height: unset;
    }
    
    .modal-close {
        position: fixed !important;
        top: 1rem !important;
        left: 1rem !important;
        right: auto !important;
        width: 30px !important;
        height: 30px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid #fff !important;
        border-radius: 50% !important;
        color: #fff !important;
        font-size: 16px !important;
        z-index: 1000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    .modal-close:hover {
        background: rgba(255, 0, 0, 0.8) !important;
        border-color: #fff !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }
    
    /* Fix social links positioning - move higher to avoid bottom bar */
    .social-fixed {
        bottom: 12vh;
        left: 8px;
        gap: 6px;
    }
    
    .social-fixed .social-link {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        padding: 8px;
    }
    
    /* Fix contact bar positioning - move higher and make more compact */
    .contact-fixed {
        bottom: 12vh;
        right: 8px;
        font-size: 0.7rem;
        padding: 8px 10px;
        line-height: 1.2;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
        backdrop-filter: blur(5px);
    }
    
    /* Fix bottom bar - make it more compact */
    .bottom-bar {
        height: 10vh;
        min-height: 60px;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
    }
    
    .footer-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-nav a {
        font-size: 0.75rem;
        padding: 0.3rem;
    }
    
    /* Fix onboarding for iPhone 13 Pro */
    .onboarding-container {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        border-radius: 10px !important; /* Keep some rounding on very small screens */
        left: 0 !important;
        right: 0 !important;
    }
    
    .question-container {
        max-width: 100%;
        padding: 1rem;
    }
    
    .question-title {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
        margin-top: 0;
    }
    
    .question-title:first-of-type {
        margin-top: 0;
    }

    .question-title:not(:first-of-type) {
        margin-top: 1.5rem;
    }

    /* Questionnaire button small screen */
    .question-container + div {
        margin-top: 1rem;
    }
    
    .question-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .option-card {
        padding: 0.8rem;
        font-size: 0.85rem;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Intro screen adjustments for iPhone SE */
    .intro-screen {
        padding: 1.5rem 1rem !important;
        min-height: calc(100vh - 100px) !important;
    }
    
    .intro-screen > div:first-child {
        margin-bottom: 2rem !important;
    }
    
    .intro-screen img {
        max-width: 240px !important;
        width: 75% !important;
        border-radius: 18px !important;
    }
    
    .intro-screen .intro-text {
        margin-bottom: 2rem !important;
    }
    
    .intro-screen h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .intro-screen p {
        font-size: 1rem !important;
    }
    
    .intro-screen button {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        min-width: 220px !important;
    }
}

@media (pointer: coarse) {
    button, a, .category-card, .option-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    .carousel-nav, .carousel-dot {
      min-width: 44px;
      min-height: 44px;
    }

    /* Better touch targets for navigation */
    .nav-grid a {
        padding: 0.5rem;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .nav-grid a:active {
        background-color: rgba(212, 175, 55, 0.2);
    }
    
    /* Better touch targets for buttons */
    .cta-button {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .social-link {
        min-width: 48px;
        min-height: 48px;
        touch-action: manipulation;
    }
}

@media (hover:hover) and (pointer:fine) {
  .has-submenu:hover > ul.submenu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .about-particle,
  .timeline-line {
    animation: none !important;
    transition: none !important;
  }
  .quantum-timeline {
    transition: none !important;
  }
}

/* ALL MEDIA ADJUSTMENTS - ENDS HERE */

/* TOP BAR STARTS HERE */

.container {
  max-width: 100%;
  margin: 0;
  padding: 0 2rem;
  width: 100%;
}

.top-bar {
  height: 10vh;
  min-height: 64px;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
  width: 100%;
}

/* Center the nav block within a tasteful frame */
.top-bar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1220px;        /* adjust 1120–1320 to taste */
  margin-inline: auto;      /* true horizontal centering */
  padding-inline: 2rem;     /* equal side insets */
  transform: translateX(0);          /* remove problematic manual shift */
}

/* --- NAV CORE --- */
.main-nav {
  width: max-content;       /* shrink-wrap to content so it centers perfectly */
  margin-inline: auto;
}

/* 3 items + logo + 3 items, equal gaps */
.main-nav > ul.nav-grid {
  --nav-gap: 4rem;        /* master spacing between neighbors */
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(7, max-content);
  align-items: center;
  justify-content: center;
  column-gap: var(--nav-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto;
  transform: translateX(50px);
}

/* Logo cell: no extra clickable area */
.logo-cell { justify-self: center; width: max-content; }
.logo-link { display: inline-block; line-height: 0; }
.logo { display: block; height: calc(10vh * 0.7) !important;
        max-height: 50px !important;
        min-height: 40px !important;
        width: auto !important;
 } /* tune size here */

/* Top-level links */
.main-nav > ul.nav-grid > li > a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

/* No underline on the logo */
.logo-cell > .logo-link::after,
.logo-cell > .logo-link:hover::after {
  content: none !important;
}

/* Underline effect only for non-logo items */
.main-nav > ul.nav-grid > li:not(.logo-cell) > a { display: inline-block; white-space: nowrap; }
.main-nav > ul.nav-grid > li:not(.logo-cell) > a::after {
  content: '';
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}
.main-nav > ul.nav-grid > li:not(.logo-cell) > a:hover { color: var(--primary-color); }
.main-nav > ul.nav-grid > li:not(.logo-cell) > a:hover::after { width: 100%; }

/* Disable any dropdowns for MVP */
.main-nav ul.submenu,
.has-submenu.open > ul.submenu { display: none !important; }

/* Keep generic link rule simple/safe */
.main-nav a { text-decoration: none; }

/* Remove login area in MVP */
.user-actions, .login-btn { display: none !important; }


/* RTL text direction; layout remains symmetric */
.top-bar, .main-nav { direction: rtl; }

/* MOBILE NAVIGATION */
.mobile-header {
  display: none; /* Hide by default, show in mobile */
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
  height: 100%;
}

.mobile-logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  line-height: 0;
}

.mobile-logo {
  height: 5.5rem;
  width: auto;
  display: block;
  max-width: 100%;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-btn span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: fit-content;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #0f0f0f 100%);
  transition: right 0.4s ease;
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin: 0;
}

.mobile-menu li a {
  display: block;
  padding: 1.2rem 2rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu li a:hover,
.mobile-menu li a:active {
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary-color);
  padding-right: 2.5rem;
}

/* Backdrop for mobile menu */
.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile submenu styling */
.mobile-submenu {
  position: relative;
}

.mobile-submenu-trigger {
  position: relative;
}

.mobile-submenu-trigger::after {
  content: '▼';
  position: absolute;
  left: 1.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.mobile-submenu.expanded .mobile-submenu-trigger::after {
  transform: rotate(180deg);
}

.mobile-submenu-content {
  position: fixed;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #0f0f0f 100%);
  border-radius: 8px;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  overflow: visible;
  max-height: none;
}

.mobile-submenu.expanded .mobile-submenu-content {
  opacity: 1;
  visibility: visible;
}

.mobile-submenu-content li {
  margin: 0;
}

.mobile-submenu-content li a {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
}

.mobile-submenu-content li:first-child a {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.mobile-submenu-content li:last-child a {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.mobile-submenu-content li a:hover {
  background: rgba(255, 102, 0, 0.2);
  color: var(--primary-color);
  padding-left: 1.5rem;
  padding-right: 1.25rem;
}

/* TOP BAR ENDS HERE */

/* Hero Section with Video Background */
.hero-section {
    width: 100%;
    position: relative;
    height: 56.25vw; /* 16:9 aspect ratio responsive height */
    max-height: 70vh; /* Prevent excessive height on very wide screens */
    min-height: 300px; /* Minimum height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.6)
    ), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" fill="%23667eea"/><circle cx="400" cy="300" r="150" fill="%23764ba2" opacity="0.3"/><circle cx="1500" cy="700" r="200" fill="%23d4af37" opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
    text-align: center !important;
    color: white !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    line-height: 1.3;
    opacity: 1 !important;
}

.hero-subtitle {
    font-size: 1.3rem !important;
    font-weight: 400;
    opacity: 0.9 !important;
    margin-bottom: 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* כפתור ההירו – סנכרון עם הטקסטים */
.hero-section .cta-button {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 3s ease-out 0.5s forwards; /* אותו טיימינג כמו ה-subtitle */
}

/* האנימציה קיימת אצלך, מצרף רק לוודא */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Social Media Icons */

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: row; /* הפיכה לאופקי */
    gap: 12px;
    z-index: 1000;
}

.social-fixed .social-link {
    color: white;
    font-size: 1.4em;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
    text-decoration: none;
}

.social-fixed .social-link:hover {
    background-color: #d4af37;
    color: black;
}

/* Category Grid - Add fixed height */
.category-grid {
    min-height: 40vh;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(auto-fit, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.85); /* white with transparency */
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* optional for "frosted" effect */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none; /* ✅ THIS is the fix */

}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.category-card:hover::before {
    opacity: 0.1;
}

.card-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 4px;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .card-icon i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.category-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-card p {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* CTA BUTTON OF ENDING SWIPING PROCESS */

.cta-endswipe-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2.5rem !important;
  background: var(--primary-color) !important;
  color: white !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 40px !important;
  cursor: pointer !important;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  min-width: 260px;
  position: relative;
}

.cta-endswipe-button:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.cta-endswipe-button:hover::before {
    left: 100%;
}

.cta-endswipe-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.6s;
    border-radius: inherit;
}

/* CTA BUTTON OF REGULAR STUFF */

.cta-wrapper {
  display: inline-block;
}

.cta-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2vh 0;
  margin: 0;
  background: none;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem !important;
  background: var(--primary-color) !important;
  color: white !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 40px !important;
  cursor: pointer !important;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  min-width: 260px;
  position: relative;
  overflow: hidden;
}

/* Ensure all CTA button text is white and visible - Individual Control */
.cta-button {
  color: white !important;
}

.cta-button .button-text {
  color: white !important;
}

.cta-button span {
  color: white !important;
}

.cta-button:hover {
/*  background: var(--primary-color); */
  transform: translateY(-2px);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
    border-radius: inherit;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    position: relative;
    overflow: hidden;
    transform: scale(0.8);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 80vh;
}

/* Special styling for legal modals */
.modal-container.legal-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
    color: #ffffff;
    padding: 1rem 1rem;
}

.modal-container.legal-modal .modal-content {
    color: #ffffff;
    padding: 2rem 2rem;
}

.modal-container.legal-modal h2 {
    color: #ffffff !important;
}

.modal-container.legal-modal h3 {
    color: #ffffff !important;
}

.modal-container.legal-modal p,
.modal-container.legal-modal li {
    color: #ffffff !important;
}

.modal-container.legal-modal strong {
    color: #ffffff !important;
}

/* Submenu styling for legal items under "אחר" */
.nav-submenu {
    position: relative;
}

.nav-submenu-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-submenu:hover .nav-submenu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-submenu-content a:last-child {
    border-bottom: none;
}

.nav-submenu-content a:hover {
    background: rgba(255, 102, 0, 0.2);
    color: #FF6600 !important;
}

/* Override the ::after underline for submenu parent */
.nav-submenu > a::after {
    display: none !important;
}

/* Onboarding Styles */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.onboarding-overlay.active {
    opacity: 1;
}

.onboarding-container {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    max-height: 100vh;
    max-height: 100dvh;
    max-height: 100svh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #0f0f0f 100%);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px; /* Match other modals' rounded design */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); /* Add depth like other modals */
}

.onboarding-header {
    padding: .6rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.onboarding-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.onboarding-close:hover {
    color: var(--text-primary);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin: 0 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 14.28%;
}

.progress-text {
    font-size: 1.6rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.onboarding-content {
    flex: 1;
    padding: .5rem .5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Quick questionnaire specific styling */
.onboarding-content:has(.question-container),
.onboarding-content.questionnaire-screen {
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: auto !important; /* Firefox */
}

/* Show scrollbar on mobile webkit browsers */
/* Consistent Scrollbar Design for All Pop-out Modals */
.onboarding-content:has(.question-container)::-webkit-scrollbar,
.onboarding-content.questionnaire-screen::-webkit-scrollbar,
.modal-container::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.swipe-interface::-webkit-scrollbar,
.property-cards::-webkit-scrollbar {
    width: 5px !important;
    display: block !important;
}

/* Scrollbar tracks - different backgrounds for different contexts */
.onboarding-content:has(.question-container)::-webkit-scrollbar-track,
.onboarding-content.questionnaire-screen::-webkit-scrollbar-track,
.swipe-interface::-webkit-scrollbar-track,
.property-cards::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1) !important; /* Dark background for dark contexts */
    border-radius: 4px !important;
}

/* Modal scrollbars - match modal background exactly */
.modal-container::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: #ffffff !important; /* Solid white to match modal background */
    border: 1px solid #f0f0f0 !important; /* Very subtle border for definition */
    border-radius: 4px !important;
}

.onboarding-content:has(.question-container)::-webkit-scrollbar-thumb,
.onboarding-content.questionnaire-screen::-webkit-scrollbar-thumb,
.modal-container::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.swipe-interface::-webkit-scrollbar-thumb,
.property-cards::-webkit-scrollbar-thumb {
    background: var(--primary-color) !important;
    border-radius: 4px !important;
}

.onboarding-content:has(.question-container)::-webkit-scrollbar-thumb:hover,
.onboarding-content.questionnaire-screen::-webkit-scrollbar-thumb:hover,
.modal-container::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.swipe-interface::-webkit-scrollbar-thumb:hover,
.property-cards::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color) !important;
}

/* Firefox scrollbar support - different colors for different contexts */
.onboarding-content,
.swipe-interface,
.property-cards {
    scrollbar-width: thin !important;
    scrollbar-color: var(--primary-color) rgba(0,0,0,0.1) !important; /* Orange thumb, dark track */
}

/* Firefox scrollbar for modals - match modal background */
.modal-container,
.modal-content {
    scrollbar-width: thin !important;
    scrollbar-color: var(--primary-color) #0a0a0a !important; /* Orange thumb, solid white track */
}

/* Swipe Interface Exit Button */
.swipe-exit-btn {
    position: relative;
    order: -1;
    margin-bottom: 20px;
    align-self: center;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.swipe-exit-btn:hover {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.4);
}

.swipe-exit-btn:active {
    transform: scale(0.95);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .swipe-exit-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .registration-exit-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
    
    /* Fix white line next to accessibility bar on mobile */
    body #a11y-toolbar .a11y-btn {
        border: none !important;
        border-color: transparent !important;
        border-width: 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
        outline: none !important;
    }
}

/* Responsive onboarding content centering */
.intro-screen {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative;
}

/* Enhanced intro screen styling */
.intro-screen img:hover {
    transform: translateY(-8px) scale(1.02) !important;
}

.intro-screen button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4) !important;
}

.intro-screen button:active {
    transform: translateY(0) !important;
}


.onboarding-navigation {
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn { background: linear-gradient(45deg,var(--primary-color),#7a767a); border: none; width: 50px; height: 50px; border-radius: 50%; color: #fff; font-size: 1.2rem; cursor: pointer; transition: all .3s ease; position: relative; overflow: hidden; }
.nav-btn:hover { transform: scale(1.1); box-shadow: 0 5px 15px rgba(138,43,226,.4); }
.nav-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent); transition: left .5s ease; }
.nav-btn:hover::before { left: 100%; }

.prev-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid #eee;
}

.prev-btn:hover {
    background: #f8f9fa;
    color: var(--text-primary);
}

.register-screen {
  padding: 1rem;
}

.question-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.2rem 0.2rem 0rem 0.2rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 100%;
}

.question-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    margin-top: 0;
}

.question-title:first-of-type {
    margin-top: 0;
}

.question-title:not(:first-of-type) {
    margin-top: 2.5rem;
}

/* Questionnaire button styling */
.question-container + div {
    margin-top: 2rem;
    text-align: center;
}

#toSwiping {
    display: inline-block;
}

.question-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.5;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax(0,1fr) avoids overflow */
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.option-card {
  background: #fff;
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  padding: 1.25rem;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  border-color: var(--primary-color);
}

.option-card.selected {
  background: var(--primary-color);
}

.option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
}

.option-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Property Swipe Styles */
.swipe-interface {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    z-index: 5000;
}

.swipe-container {
  /* viewport height, modern-first with fallbacks */
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100vh;

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Back to center for better balance */
  gap: clamp(1rem, 3vh, 1.5rem); /* Keep optimized gap */

  /* Responsive horizontal padding */
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);

  /* Balanced padding - slightly more generous but still efficient */
  padding-top: max(env(safe-area-inset-top, 0px), clamp(1rem, 3vh, 2rem));
  padding-bottom: max(env(safe-area-inset-bottom, 0px), clamp(1rem, 4vh, 2rem));
}

.swipe-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.swipe-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-card.dragging {
    cursor: grabbing;
    transform: rotate(5deg);
}

.swipe-actions {
    display: flex;
    gap: clamp(1.5rem, 6vw, 3rem); /* Responsive gap between buttons */
    align-items: center;
    justify-content: center;
}

.swipe-btn {
    width: clamp(50px, 12vw, 70px);   /* Responsive button size */
    height: clamp(50px, 12vw, 70px);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Add depth */
}

.dislike {
    background: #ff4757;
    color: white;
}

.like {
    background: #2ed573;
    color: white;
}

.swipe-btn:hover {
    transform: scale(1.1);
}

/* Mobile-specific improvements for swipe interface */
@media (max-width: 768px) {
  .swipe-container {
    padding-top: max(env(safe-area-inset-top, 0px), 1rem); /* Minimal top padding */
    gap: clamp(0.8rem, 2vh, 1.2rem); /* Even tighter gap on mobile */
  }
  
  .property-card.big {
    height: clamp(350px, 55vh, 450px); /* Optimized height for mobile */
  }
  
  .swipe-header {
    margin-bottom: 1rem; /* Reduce header margin */
  }
}

/* Landscape and short screen optimizations */
@media (max-height: 600px) {
  .swipe-container {
    gap: clamp(0.5rem, 1vh, 0.8rem); /* Very tight gaps on short screens */
    padding-top: max(env(safe-area-inset-top, 0px), 0.5rem);
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 0.5rem);
  }
  
  .property-card.big {
    height: clamp(280px, 75vh, 350px); /* Smaller cards on short screens */
  }
}
  
  .property-carousel {
    min-height: 150px;
    max-height: 60vh; /* Less space for carousel on short screens */
  }
  
  .property-info {
    padding: clamp(0.4rem, 1vw, 0.6rem); /* Minimal padding */
    gap: 0.2rem; /* Very tight gaps */
  }
  
  .swipe-header {
    margin-bottom: 0.5rem;
    font-size: 1.5rem; /* Smaller header text */
  }
  
  .swipe-btn {
    width: clamp(45px, 10vw, 55px); /* Smaller buttons */
    height: clamp(45px, 10vw, 55px);
  }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Contact Bar */
.contact-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-align: right;
    color: white;
    font-size: 1.4em;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: 12px;
    z-index: 1000;
    direction: ltr; /* force LTR for phone + email */
    background-color: none;
    transition: background 0.3s ease;
}

.contact-fixed p {
    margin: 0;
}

/* Bottom Bar - 10vh */
.bottom-bar {
    height: 10vh;
    backdrop-filter: none;
    background-color: rgba(248, 249, 250, 0.95);
    border-top: 1px solid #e9ecef;
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    z-index: 100;
    margin-top: 2rem; /* Add some spacing from content above */
}

.bottom-bar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* מרכז את התפריט */
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 3rem; /* Spacing between categories */
    margin: 0;
    padding: 0;
}

.footer-nav a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #c7af87; /* צבע בהובר */
}

/* === Enhanced Floating Accessibility Toolbar (A11Y) === */
:root { --a11y-w: 200px; --a11y-z: 9999; }

/* Enhanced Floating Toolbar with better positioning */
#a11y-toolbar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  line-height: 1.4;
  z-index: var(--a11y-z);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating design - slides from left with smooth animation */
#a11y-toolbar.a11y-right { 
  left: calc(-1 * var(--a11y-w) + 10px); 
  transition: left 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#a11y-toolbar.a11y-open.a11y-right { 
  left: 0; 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#a11y-toolbar .a11y-toggle { 
  position: absolute; 
  left: calc(var(--a11y-w) - 10px);
  top: 50%;
  transform: translateY(-50%);
}

/* Fix scrolling issues on larger screens */
@media (min-width: 768px) {
  #a11y-toolbar {
    top: 40%;
    transform: translateY(-50%);
  }
  
  #a11y-toolbar .a11y-panel {
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
  }
  
  /* Custom scrollbar for webkit browsers */
  #a11y-toolbar .a11y-panel::-webkit-scrollbar {
    width: 6px;
  }
  
  #a11y-toolbar .a11y-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
  }
  
  #a11y-toolbar .a11y-panel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
  }
  
  #a11y-toolbar .a11y-panel::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
  }
}

/* Enhanced floating button design */
#a11y-toolbar .a11y-btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 50px 15px 15px 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 
              0 2px 8px rgba(255, 102, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

#a11y-toolbar .a11y-btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
  color: white;
  transform: translateX(5px);
  box-shadow: 0 6px 25px rgba(255, 102, 0, 0.3), 
              0 4px 12px rgba(0, 0, 0, 0.15);
}

#a11y-toolbar .a11y-btn:focus { 
  outline: 0.1875rem solid #7aa7ff; 
  outline-offset: 2px;
}

/* Enhanced floating panel design */
#a11y-toolbar .a11y-panel {
  width: var(--a11y-w); 
  border: 1px solid rgba(255, 102, 0, 0.2);
  background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
  border-radius: 20px; 
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
              0 8px 24px rgba(255, 102, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  backdrop-filter: blur(20px);
}
#a11y-toolbar .a11y-title { font-weight:700; margin:0; padding:0.625rem 0.75rem 0; font-size:1rem; text-align: center;}
#a11y-toolbar .a11y-list { list-style:none; margin:0; padding:0.625rem 0; }
#a11y-toolbar .a11y-link {
  width:100%; text-align: center; background:none; border:0; cursor:pointer;
  padding:0.625rem 0.75rem; font-size:1em; /* היה 14px */
}
#a11y-toolbar .a11y-link:hover, #a11y-toolbar .a11y-link:focus { background:#f7f7f7; outline:none; }
#a11y-toolbar .a11y-reset { border-top:1px solid #eee; margin-top:0.375rem; }

/* מחלקות שנוספות לגוף הדף */
.a11y-grayscale { filter: grayscale(100%); }
.a11y-high-contrast * { background-image: none !important; box-shadow: none !important; }
.a11y-high-contrast, .a11y-high-contrast * { background:#000 !important; color:#fff !important; }
.a11y-negative, .a11y-negative * { background:#000 !important; color:yellow !important; }
.a11y-light-bg, .a11y-light-bg *:not(#a11y-toolbar) { background:#fff !important; color:#000 !important; }
.a11y-underline a, .a11y-underline a * { text-decoration: underline !important; }
.a11y-readable, .a11y-readable *:not(i):not(svg):not(code) { font-family: Verdana, Arial, Helvetica, sans-serif !important; }

/* הגדלת טקסט הדרגתית – מוחלת על html כדי להשפיע על rem */
html.a11y-font-120 { font-size: 120%; }
html.a11y-font-130 { font-size: 130%; }
html.a11y-font-140 { font-size: 140%; }
html.a11y-font-150 { font-size: 150%; }
html.a11y-font-160 { font-size: 160%; }
html.a11y-font-170 { font-size: 170%; }
html.a11y-font-180 { font-size: 180%; }
html.a11y-font-190 { font-size: 190%; }
html.a11y-font-200 { font-size: 200%; }

.sr-only {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip: rect(0,0,0,0); border:0;
}

/* ===== About Timeline ===== */
.about-timeline { --gap: 1.25rem; --card-w: 280px; --track: rgba(0,0,0,.08); }
.about-tl-header { text-align: center; margin-bottom: 1.25rem; }
.about-tl-header h2 { margin-bottom: .25rem; }
.about-tl-sub { color: var(--text-secondary); margin-top: 1rem;}

.about-tl-rail {
  position: relative;
  margin: 1rem 0 0.5rem;
  padding: 1.25rem 2.75rem; /* מקום לחיצים */
}

.about-tl-rail::before {
  content: "";
  position: absolute;
  right: 1rem; 
  left: 1rem;
  top: 50%;
  height: 4px;
  background: rgba(212,175,55,.35);
  transform: translateY(-50%);
  pointer-events: none;

  /* אפקט נשימה */
  animation: pulseLine 2.5s ease-in-out infinite;
}

/* אנימציית ה-pulse */
@keyframes pulseLine {
  0%, 100% {
    background: rgba(212,175,55,.35);
    box-shadow: 0 0 0 rgba(212,175,55,0);
  }
  50% {
    background: rgba(212,175,55,.55); /* קצת יותר מודגש באמצע */
    box-shadow: 0 0 10px rgba(212,175,55,.45);
  }
}

.about-tl-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--card-w), 1fr);
  gap: 5rem;
  overflow-x: auto;
  padding: .5rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.about-tl-list:focus { outline: none; }

.tl-item {
  scroll-snap-align: center;
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

.tl-item.tl-highlight { border-color: rgba(212,175,55,.35); box-shadow: 0 10px 32px rgba(212,175,55,.18); }
.tl-cover { aspect-ratio: 4 / 3; background: #f4f4f4; }
.tl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tl-meta { padding: .9rem 1rem 1.1rem; }
.tl-year { font-weight: 700; color: var(--text-secondary); }
.tl-badge {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  background: rgba(212,175,55,.12); color: var(--primary-color);
}
.tl-title { margin: .15rem 0 .35rem; font-weight: 700; color: var(--text-primary); }
.tl-desc { color: var(--text-secondary); line-height: 1.5; font-size: .95rem; }
.tl-note { font-style: italic; opacity: .85; }

.about-tl-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer; z-index: 2;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
  transition: transform .2s ease;
}
.about-tl-nav:hover { transform: translateY(-50%) scale(1.05); }
.about-tl-nav.prev { inset-inline-start: .5rem; }
.about-tl-nav.next { inset-inline-end: .5rem; }

.about-tl-foot { margin-top: 1rem; text-align: center; }


/* ===== Services Timeline ===== */
.services-timeline { --gap: 1.25rem; --card-w: 280px; --track: rgba(0,0,0,.08); }
.services-tl-header { text-align: center; margin-bottom: 1.25rem; }
.services-tl-header h2 { margin-bottom: .25rem; }
.services-tl-sub { color: var(--text-secondary); margin-top: 1rem; }

.services-tl-rail {
  position: relative;
  margin: 1rem 0 0.5rem;
  padding: 1.25rem 2.75rem; /* מקום לחיצים */
}
.services-tl-rail::before {
  content: "";
  position: absolute;
  right: 1rem; 
  left: 1rem;
  top: 50%;
  height: 4px;
  background: rgba(212,175,55,.35);
  transform: translateY(-50%);
  pointer-events: none;

  /* אפקט נשימה */
  animation: pulseLine 2.5s ease-in-out infinite;
}

/* אנימציית ה-pulse */
@keyframes pulseLine {
  0%, 100% {
    background: rgba(212,175,55,.35);
    box-shadow: 0 0 0 rgba(212,175,55,0);
  }
  50% {
    background: rgba(212,175,55,.55); /* קצת יותר מודגש באמצע */
    box-shadow: 0 0 10px rgba(212,175,55,.45);
  }
}

.services-tl-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--card-w), 1fr);
  gap: 4rem;
  overflow-x: auto;
  padding: .5rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.services-tl-list:focus { outline: none; }

.svc-item {
  scroll-snap-align: center;
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

.svc-cover { aspect-ratio: 4 / 3; background: #f4f4f4; }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.svc-meta { padding: .9rem 1rem 1.1rem; }
.svc-year { font-weight: 700; color: var(--text-secondary); }
.svc-title { margin: .15rem 0 .35rem; font-weight: 700; color: var(--text-primary); margin-bottom:0.6rem; }
.svc-desc { color: var(--text-secondary); line-height: 1.5; font-size: .95rem; }
.svc-note { font-style: italic; opacity: .85; }

.services-tl-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer; z-index: 2;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
  transition: transform .2s ease;
}
.services-tl-nav:hover { transform: translateY(-50%) scale(1.05); }
.services-tl-nav.prev { inset-inline-start: .5rem; }
.services-tl-nav.next { inset-inline-end: .5rem; }

.services-tl-foot { margin-top: 1rem; text-align: center; }


.team-bullet{
  position:absolute; top:1rem; inset-inline-start:1rem; /* RTL ידידותי */
  width:36px; height:36px; border-radius:50%; border:0; background:transparent;
  padding:0; cursor:pointer; display:grid; place-items:center;
}
.team-bullet .dot{
  width:12px; height:12px; border-radius:50%;
  background:rgba(212,175,55,.9);
  box-shadow:0 0 0 4px rgba(212,175,55,.25);
  transition:transform .15s ease, box-shadow .15s ease;
}
.team-bullet:hover .dot, .team-bullet:focus-visible .dot{
  transform:scale(1.1); box-shadow:0 0 0 6px rgba(212,175,55,.3);
}

/* ==== Unicorn UI: Toasts ==== */
#toastContainer {
  margin-top: 1rem;
  text-align: center;
}
.toast {
  display: inline-block;
  direction: rtl;
  background: linear-gradient(135deg,#6a11cb,#2575fc);
  color:#fff;
  padding:.7rem 1.1rem;
  border-radius:12px;
  font-size:.9rem;
  font-weight:600;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

.toast--error { background: #ff4d6d; }
.toast--success { background: linear-gradient(135deg,#43e97b,#38f9d7); }

@keyframes toastIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ==== Inline form error (compact, RTL) ==== */
.form-error {
  direction: rtl;
  color: #ff4d6d;
  font-size: .9rem;
  margin-top: .5rem;
  display: none;
}

/* ==== Button loading state ==== */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: .85;
}
.btn-loading::after {
  content: '';
  position: absolute;
  inset-inline-end: .75rem;
  top: 50%;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* === Dor Real Estate — Property Card (Clean Responsive) === */

.property-cards-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.property-cards {
  position: relative;
  /* Let .property-card.big handle sizing for Tinder-like interface */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Instant loading with smooth transitions */
.property-image-placeholder.loading {
  filter: blur(1px);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.property-image-placeholder:not(.loading) {
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.property-card {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: opacity 0.15s ease;
}

/* Tinder-like big card - consistent responsive sizing */
.property-card.big {
  width: clamp(320px, 90vw, 420px);
  height: clamp(400px, 60vh, 500px); /* Reduced height to fit with buttons */
  max-width: 420px;
  flex-shrink: 0; /* Prevent card from shrinking */
}

/* --- Carousel --- */
.property-carousel {
  position: relative;
  background: #f4f4f4;
  overflow: hidden;
  direction: ltr;              /* Force LTR for carousel to prevent RTL reversal */
  flex: 1;                     /* Take up available space, but allow info section */
  min-height: 200px;           /* Reduced minimum height */
  max-height: 70vh;            /* Prevent carousel from taking too much space */
}

.property-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
  will-change: transform;
  /* JS should override width dynamically to slides*100% */
}

.carousel-slide {
  height: 100%;
  display: block;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.property-image.placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #999;
  background: linear-gradient(45deg, #ececec, #f7f7f7);
}

/* Carousel nav */
.carousel-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.25rem;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, transform .1s ease;
}
.carousel-nav:hover { background: rgba(0,0,0,.5); transform: translateY(-50%) scale(1.08); }
.carousel-prev { 
  inset-inline-start: 12px; 
  left: 12px; 
}
.carousel-next { 
  inset-inline-end: 12px; 
  right: 12px; 
}

.carousel-dots {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.carousel-dot {
  border-radius: 50%; border: 0;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  width: 12px;
  height: 12px;
}
.carousel-dot.active { background: #fff; }

@media (pointer: coarse) {
  .carousel-nav, .carousel-dot {
    min-width: 1rem;
    min-height: 1rem;
  }
}

/* --- Description Pop-out --- */
.description-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  padding: 1rem;
}

.description-overlay.active {
  opacity: 1;
  visibility: visible;
}

.description-popup {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  max-height: 80vh;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  overflow-y: auto;
  direction: rtl;
  position: relative;
}

.description-overlay.active .description-popup {
  transform: scale(1) translateY(0);
}

.description-popup .close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  color: #666;
  z-index: 1;
}

.description-popup .close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}
 
.description-popup h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  text-align: center;
}

.description-popup .description-text {
  line-height: 1.6;
  color: #333;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .description-popup {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 15px;
  }
  
  .description-popup h3 {
    font-size: 1.3rem;
  }
  
  .description-popup .description-text {
    font-size: 1rem;
  }
}

/* --- Info section --- */
.property-info {
    flex: 0 0 auto;               /* Don't grow, maintain content size */
    padding: clamp(0.6rem, 1.5vw, 1rem); /* More compact padding */
    display: flex;
    flex-direction: column;
    gap: clamp(0.2rem, 0.5vw, 0.4rem);   /* Tighter gaps */
    text-align: center;
    min-height: fit-content;      /* Ensure it takes only needed space */
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #111);
}

.property-price {
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary-color, #0f766e);
}

.property-location {
  font-size: 1rem;
  color: var(--text-secondary, #555);
}

.property-meta {
  font-size: .95rem;
  color: #666;
}

/* --- Feature pills --- */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    /* margin: .3rem 0 .3rem; */
    padding: 0;
    list-style: none;
    justify-content: center;
}

.feature-pill {
    align-items: center;
    gap: .4rem;
    padding: .3rem .4rem;
    border-radius: 999px;
    background: #e9f7ef;
    color: #14532d;
    font-size: .6rem;
    border: 1px solid #c7ead5;
}

.feature-pill .checkmark {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: #22c55e; color: #fff;
  border-radius: 4px;
  font-size: .85rem;
}

/* === Executives Scroll (team modal only, isolated) === */

.executive-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 500px;
  position: relative;
}

.executive-slide {
  width: 100%;
  max-width: 600px;
  height: 600px;
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  gap: 0.5rem;
}
.executive-slide.active { display: flex; }

.executive-photo {
  width: 190px; height: 190px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}
.executive-name {
  font-weight: 700; color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.executive-description {
  margin-top: 0.5rem;
  padding: 0 1rem;
  line-height: 1.6;
  font-size: 1rem;
  overflow: hidden;
}

/* === NEW: Executives-only nav (no conflict with Tinder) === */
.exec-nav {
  background: none;
  border: 0;
  box-shadow: none;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0;
}

.exec-nav__btn {
  background: var(--primary-color);
  border: 0;
  outline: 0;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; cursor: pointer;
  margin: 0 .5rem;
}
.exec-nav__btn:hover { background: #d4af37; }
/* Standard button container - reference styling for all buttons */
.btn-hero-content-container{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-content-container span{
  text-align: center;
  font-weight: 600;
}

.btn-hero-content-container i{
  font-size: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

/* Apply standardized styling to selected button types */
.legacy-cta,
.quantum-cta,
.ctasset-button,
.nav-btn,
.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.legacy-cta:hover,
.quantum-cta:hover,
.ctasset-button:hover,
.nav-btn:hover,
.slider-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 102, 0, 0.4);
}

/* Shimmer effect for all standardized buttons */
.legacy-cta::before,
.quantum-cta::before,
.ctasset-button::before,
.nav-btn::before,
.slider-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
  border-radius: inherit;
}

.legacy-cta:hover::before,
.quantum-cta:hover::before,
.ctasset-button:hover::before,
.nav-btn:hover::before,
.slider-btn:hover::before {
  left: 100%;
}

/* Icon animation in standardized buttons */
.legacy-cta:hover i,
.quantum-cta:hover i,
.ctasset-button:hover i {
  transform: translateX(-2px);
}


/* ------------------CATEGORIES------------------ */

/* ABOUT */

.quantum-about {
  background: linear-gradient(135deg, #0f1419 0%, #1a1e2e 25%, #252b3d 50%, #1a1e2e 75%, #0f1419 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: -2rem;
  min-height: 90vh;
  direction: rtl;
  font-family: 'Heebo', Arial, sans-serif;
}

.about-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.about-particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.4;
  animation: aboutFloat 12s infinite linear;
}
.about-particle:nth-child(2n) { 
  background: var(--primary-color); 
  animation-delay: -3s; 
  animation-duration: 15s;
}
.about-particle:nth-child(3n) { 
  background: var(--primary-color); 
  animation-delay: -6s; 
  animation-duration: 18s;
}
.about-particle:nth-child(4n) { 
  background: var(--primary-color); 
  animation-delay: -9s; 
  animation-duration: 20s;
}
.about-particle:nth-child(5n) { 
  background: var(--primary-color); 
  animation-delay: -2s; 
  animation-duration: 14s;
}

@keyframes aboutFloat {
  0% { 
    transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0); 
    opacity: 0; 
  }
  15% { 
    opacity: 0.4; 
    transform: scale(1); 
  }
  85% { 
    opacity: 0.4; 
  }
  100% { 
    transform: translateY(-100px) translateX(15px) rotate(180deg) scale(0); 
    opacity: 0; 
  }
}

.about-content {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem;
  backdrop-filter: blur(3px);
}

.about-hero {
  text-align: center;
  margin-bottom: 15px;
}

.about-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

@keyframes aboutTitleGlow {
  0% { 
    transform: scale(1); 
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 102, 0, 0.3)); 
  }
  100% { 
    transform: scale(1.02); 
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 102, 0, 0.5)); 
  }
}

.about-subtitle {
  font-size: 1.4rem;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
}

.legacy-story {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.08), rgba(255, 102, 0, 0.05));
  border: 2px solid rgba(255, 102, 0, 0.2);
  border-radius: 20px;
  padding: 1rem;
  margin: 2rem 0 3rem 0;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.legacy-story:hover {
  border-color: rgba(255, 102, 0, 0.4);
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.15);
}

.legacy-story::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color), var(--primary-color), var(--primary-color));
  background-size: 300% 300%;
  z-index: -1;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: aboutBorderGlow 8s ease-in-out infinite;
}

.legacy-story:hover::before {
  opacity: 0.3;
}

@keyframes aboutBorderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.executives-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.story-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-align: center;
}

.quantum-timeline {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  opacity: 1;
}

.timeline-header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 1;
  transform: translateY(0);
}

.timeline-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.timeline-container {
  position: relative;
  padding: 0rem 1rem;
}

.timeline-line {
  position: absolute;
  right: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-color), var(--primary-color));
  transform: translateX(50%);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
  opacity: 1;
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }
.timeline-item:nth-child(5) { animation-delay: 1.0s; }
.timeline-item:nth-child(6) { animation-delay: 1.2s; }

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

.timeline-content {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(255, 102, 0, 0.05));
  border: 2px solid rgba(255, 102, 0, 0.2);
  border-radius: 15px;
  padding: 2rem;
  width: 45%;
  position: relative;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-content:hover {
  transform: scale(1.03) translateY(-8px);
  border-color: rgba(255, 102, 0, 0.5);
  box-shadow: 0 15px 35px rgba(255, 102, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.15), rgba(255, 107, 53, 0.1));
}

.timeline-dot {
  position: absolute;
  right: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
  border-radius: 50%;
  transform: translate(50%, -50%);
  border: 3px solid rgba(255, 102, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-content:hover ~ .timeline-dot {
  transform: translate(50%, -50%) scale(1.3);
  box-shadow: 0 0 30px rgba(255, 102, 0, 0.8);
}

.timeline-year {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.timeline-milestone {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.timeline-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  text-align: center;
  font-weight: 600;
}

.timeline-item.current .timeline-content {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.2), rgba(255, 107, 53, 0.15));
  border-color: rgba(255, 102, 0, 0.6);
  box-shadow: 0 0 40px rgba(255, 102, 0, 0.3);
}

.timeline-item.current .timeline-dot {
  background: linear-gradient(45deg, var(--primary-color), #ffffff, var(--primary-color));
  animation: currentDotPulse 2s infinite;
}

@keyframes currentDotPulse {
  0%, 100% {
    transform: translate(50%, -50%) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.8);
  }
  50% {
    transform: translate(50%, -50%) scale(1.4);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
  }
}

.legacy-footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
}

.legacy-cta {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: none;
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

.legacy-cta:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 102, 0, 0.4);
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
}

/* SERVICES */

.quantum-services {
  background: linear-gradient(135deg, #1a0a0a 0%, #2e1a0a 50%, #3e2010 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: -2rem;
  min-height: 85vh;
}

.services-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.service-particle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: serviceFloat 6s infinite linear;
}

.service-particle:nth-child(2n) { background: #ff6b35; animation-delay: -1.5s; }
.service-particle:nth-child(3n) { background: #ff9a56; animation-delay: -3s; }
.service-particle:nth-child(4n) { background: #ffb377; animation-delay: -4.5s; }

@keyframes serviceFloat {
  0% { transform: translateY(100vh) translateX(0px) scale(0); opacity: 0; }
  15% { opacity: 0.8; transform: scale(1); }
  85% { opacity: 0.8; }
  100% { transform: translateY(-100px) translateX(30px) scale(0); opacity: 0; }
}

.services-content {
  position: relative;
  z-index: 10;
  padding: 3rem 2rem;
  backdrop-filter: blur(3px);
}

.services-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.services-title {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;           /* standard */
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

@keyframes servicesPulse {
  0% { transform: scale(1) rotateZ(0deg); filter: brightness(1); }
  100% { transform: scale(1.03) rotateZ(1deg); filter: brightness(1.3); }
}

.services-subtitle {
  font-size: 1.3rem;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.service-hexagon {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 102, 0, 0.3);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.service-hexagon:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 
    0 20px 40px rgba(255, 102, 0, 0.3),
    0 0 50px rgba(255, 102, 0, 0.2);
}

.service-hexagon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  z-index: -1;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-hexagon:hover::before {
  opacity: 1;
}

.service-header {
  display: flex;
  align-items: center;
}

.service-icon {
  font-size: 3rem;
  margin-left: 1.5rem;
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
}

.service-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.service-title-en {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 400;
  display: block;
  margin-top: 0.2rem;
}

.service-description {
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-tag {
  background: rgba(255, 102, 0, 0.15);
  border: 1px solid rgba(255, 102, 0, 0.4);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(255, 102, 0, 0.25);
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(255, 102, 0, 0.4);
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: none;
  margin: 2rem 0;
  text-align: center;
  direction: rtl;
}

.tech-stat {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.tech-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.tech-label {
  color: #ffffff;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.cta-section {
  text-align: center;
  margin-top: 2rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 25px;
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.quantum-cta-services {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0.5rem;
  position: relative;
  overflow: hidden;
}

.quantum-cta-services:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.5);
}

.quantum-cta-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.quantum-cta-services:hover::before {
  left: 100%;
}

/* Center-align the contact button in join modal */
.quantum-cta.contact {
  display: block;
  margin: 2rem auto 0 auto;
  text-align: center;
}

/* TEAM */

.quantum-team {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #0f0f0f 100%);    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: -2rem;
    height: fit-content;
}
.team-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.team-particle { position: absolute; width: 1.5px; height: 1.5px; background: var(--primary-color); border-radius: 50%; opacity: 0.6; animation: teamFloat 7s infinite linear; }
.team-particle:nth-child(2n) { background: var(--primary-color); animation-delay: -2s; }
.team-particle:nth-child(3n) { background: var(--primary-color); animation-delay: -4s; }
.team-particle:nth-child(4n) { background: var(--primary-color); animation-delay: -6s; }
@keyframes teamFloat { 0% { transform: translateY(100vh) translateX(-20px) scale(0); opacity: 0; } 20% { opacity: 0.6; transform: scale(1); } 80% { opacity: 0.6; } 100% { transform: translateY(-100px) translateX(20px) scale(0); opacity: 0; } }
.team-content { position: relative; z-index: 10; padding: 0.8rem; backdrop-filter: blur(2px); }
.team-hero { text-align: center; margin-bottom: 1rem; padding: 2rem 1rem 0rem 1rem;}
.team-title { font-size: 2.5rem; font-weight: 700; background: linear-gradient(45deg, var(--primary-color), var(--primary-color), var(--primary-color)); -webkit-background-clip: text;  background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; animation: teamPulse 4s infinite alternate; }
@keyframes teamPulse { 0% { transform: scale(1); filter: brightness(1); } 100% { transform: scale(1.02); filter: brightness(1.4); } }
.team-subtitle { font-size: 1.1rem; color: #fff; max-width: 600px; margin: 0 auto 1rem; line-height: 1.6; }
.executive-progress { display: flex; align-items: center; justify-content: center; margin: 1rem 0; gap: 1rem; }
.exec-counter { background: rgba(255,122,0,.1); border: 1px solid rgba(255,122,0,.3); padding: .5rem 1rem; border-radius: 25px; color: var(--primary-color); font-weight: 600; font-size: 1rem; }
.progress-track { width: 200px; height: 6px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.progressteam-fill { height: 100%; background: linear-gradient(90deg,var(--primary-color),var(--primary-color)); border-radius: 3px; transition: width .5s ease; box-shadow: 0 0 10px rgba(255,122,0,.5); }
.executive-showcase { background: rgba(255,255,255,.02); border: 1px solid rgba(255,122,0,.2); border-radius: 25px; padding: 1.5rem; margin: 1rem 0; backdrop-filter: blur(5px); transition: all .3s ease; }
.executive-showcase:hover { border-color: var(--primary-color); box-shadow: 0 15px 35px rgba(255,122,0,.2); }
.exec-profile { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.exec-photo-container { position: relative; flex-shrink: 0; }
.exec-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); box-shadow: 0 0 20px rgba(255,122,0,.4); transition: all .3s ease; }
.exec-photo:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255,122,0,.6); }
.exec-info { flex: 1; }
.exec-name { font-size: 1.8rem; font-weight: 600; color: #fff; margin-bottom: .5rem; }
.exec-title { font-size: 1rem; color: var(--primary-color); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.exec-description { color: #ffffff; line-height: 1.7; font-size: .95rem; font-weight: 500; }
.exec-skills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.skill-chip { background: rgba(255,122,0,.15); border: 1px solid rgba(255,122,0,.3); padding: .3rem .8rem; border-radius: 15px; font-size: .8rem; color: var(--primary-color); transition: all .3s ease; }
.skill-chip:hover { background: rgba(255,122,0,.25); transform: scale(1.05); }
.navigation-controls { display: flex; justify-content: center; align-items: center; gap: 2rem; margin: 2rem 0; }
.team-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.team-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,122,0,.3); transition: all .3s ease; cursor: pointer; }
.team-dot.active { background: var(--primary-color); transform: scale(1.3); box-shadow: 0 0 10px rgba(255,122,0,.5); }

/* ASSETS */

.ctasset-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
  padding: 2rem;
  text-align: center;
  margin: 2rem -2rem -2rem -2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.ctasset-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to top, transparent, #2c2c2c);
  transform: translateY(-20px);
}

.ctasset-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  margin-top: -2rem;
}

.ctasset-button {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid white;
  padding: 1.2rem 3rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ctasset-button:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;          /* use the full .main-content width */
  max-width: none;      /* remove the 1000px cap */
  padding: 0 1rem;    /* add horizontal padding */
  margin: 2rem 0;       /* no auto-centering */
  text-align: center;
  direction: rtl;       /* first card starts at the right edge */
}

/* CONTACT */

.quantum-contact {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 50%, #0f0f0f 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: -2rem;
  min-height: 85vh;
}

.contact-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.contact-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.7;
  animation: contactFloat 8s infinite linear;
}

.contact-particle:nth-child(2n) { 
  background: var(--primary-color); 
  animation-delay: -1s; 
  animation-duration: 6s;
}
.contact-particle:nth-child(3n) { 
  background: var(--primary-color); 
  animation-delay: -3s; 
  animation-duration: 7s;
}
.contact-particle:nth-child(4n) { 
  background: var(--primary-color); 
  animation-delay: -2s; 
  animation-duration: 9s;
}
.contact-particle:nth-child(5n) { 
  background: var(--primary-color); 
  animation-delay: -4s; 
  animation-duration: 5s;
}

@keyframes contactFloat {
  0% { 
    transform: translateY(100vh) translateX(-30px) scale(0) rotate(0deg); 
    opacity: 0; 
  }
  10% { 
    opacity: 0.7; 
    transform: scale(1); 
  }
  90% { 
    opacity: 0.7; 
  }
  100% { 
    transform: translateY(-100px) translateX(30px) scale(0) rotate(360deg); 
    opacity: 0; 
  }
}

.contact-content {
  position: relative;
  z-index: 10;
  padding: 2rem;
  backdrop-filter: blur(3px);
}

.contact-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: contactPulse 3s infinite alternate;
  text-shadow: 0 0 30px rgba(255, 102, 0, 0.3);
}

@keyframes contactPulse {
  0% { 
    transform: scale(1) rotateY(0deg); 
    filter: brightness(1); 
  }
  100% { 
    transform: scale(1.03) rotateY(2deg); 
    filter: brightness(1.2); 
  }
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.communication-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-methods {
  background: rgba(255, 102, 0, 0.03);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.contact-methods:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 102, 0, 0.2);
  transform: translateY(-5px);
}

.methods-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.method-item:hover {
  background: rgba(255, 102, 0, 0.1);
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.15);
}

.method-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.method-details {
  flex: 1;
}

.method-label {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.method-value {
  color: var(--primary-color);
  font-size: 0.95rem;
  direction: ltr;
  text-align: left;
}

.contact-form-section {
  background: rgba(255, 138, 101, 0.03);
  border: 1px solid rgba(255, 138, 101, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.contact-form-section:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 138, 101, 0.2);
  transform: translateY(-5px);
}

.form-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.quantum-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.quantum-input, .quantum-textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 102, 0, 0.3);
  border-radius: 15px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.quantum-input::placeholder, .quantum-textarea::placeholder {
  color: var(--primary-color);
  opacity: 0.7;
}

.quantum-input:focus, .quantum-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 
    0 0 20px rgba(255, 102, 0, 0.3),
    inset 0 0 20px rgba(255, 102, 0, 0.1);
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.08);
}

.quantum-input:valid, .quantum-textarea:valid {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

.quantum-input:invalid:not(:placeholder-shown), 
.quantum-textarea:invalid:not(:placeholder-shown) {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.submit-btn {
  background: linear-gradient(45deg, var(--primary-color), #FF4D00);
  border: none;
  padding: 1rem 3rem;
  border-radius: 25px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  align-self: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 25px rgba(255, 102, 0, 0.3),
    0 0 30px rgba(255, 77, 0, 0.2);
  background: linear-gradient(45deg, var(--primary-color), var(--primary-color));
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.contact-methods-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.quick-contact-btn {
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 15px;
  padding: 1rem;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.quick-contact-btn:hover {
  background: rgba(255, 102, 0, 0.2);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.25);
}

.quick-contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.quick-contact-text {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
}

.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, var(--primary-color), #FF4D00);
  color: #ffffff;
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(255, 102, 0, 0.3);
  z-index: 1000;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.4s ease;
}

.success-message.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.quantum-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: quantumGlow 6s infinite ease-in-out;
  z-index: 2;
}

@keyframes quantumGlow {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 0.3; 
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.5); 
    opacity: 0.1; 
  }
}

/* PROJECTS */

.quantum-projects {
  background: linear-gradient(135deg, 
    #0a0a0a 0%, 
    #1a1a1a 25%, 
    #2d2d2d 50%, 
    #1a1a1a 75%, 
    #0a0a0a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 3rem;
  margin: -2rem;
  min-height: 85vh;
  border: 1px solid rgba(255, 102, 0, 0.2);
}

.quantum-projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 70%, rgba(255, 102, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(255, 102, 0, 0.05) 0%, transparent 60%),
    linear-gradient(45deg, transparent 30%, rgba(255, 102, 0, 0.02) 50%, transparent 70%);
  pointer-events: none;
  animation: quantumGlow 8s ease-in-out infinite;
}

.quantum-projects .projects-grid {
  padding: 2rem;
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  aspect-ratio: 4 / 3;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 40px rgba(255, 102, 0, 0.15),
    0 10px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.2);
  background: linear-gradient(135deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(45, 45, 45, 0.9) 100%);
  backdrop-filter: blur(20px);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  z-index: 0;
  border-radius: 25px;
}

  .project-card:hover {
  transform: translateY(-15px) scale(1.03);
    box-shadow:
      0 0 60px rgba(255, 102, 0, 0.3),
      0 20px 80px rgba(0, 0, 0, 0.8),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 102, 0, 0.5);
  }

  .project-card:hover img {
  transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
  }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.3) 30%, 
    rgba(255, 102, 0, 0.2) 70%, 
    rgba(0, 0, 0, 0.8) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: "Inter", "Heebo", sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 2;
  padding: 1rem;
  text-align: center;
}


.project-card:hover .project-overlay {
  opacity: 1;
  background: linear-gradient(135deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.4) 30%, 
    rgba(255, 102, 0, 0.3) 70%, 
    rgba(0, 0, 0, 0.9) 100%);
  backdrop-filter: blur(15px);
}

.project-overlay.show-always {
    opacity: 0;
    background: transparent;
    backdrop-filter: none;
}

.project-sold:hover .project-overlay.show-always {
    opacity: 1;
    background: linear-gradient(135deg, 
      transparent 0%, 
      rgba(0, 0, 0, 0.4) 30%, 
      rgba(255, 102, 0, 0.3) 70%, 
      rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(15px);
}

.project-sold::after {
  content: "נמכר";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    #FF8C00 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 25px;
  z-index: 3;
  box-shadow: 
    0 0 20px rgba(255, 102, 0, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.project-sold::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
    backdrop-filter: none;
}

/* CONSENT CHECKBOXES */

.consent-container input[type="checkbox"]:checked + .checkbox-design {
  border-color: var(--primary-color) !important;
  background: var(--primary-color) !important;
}

.consent-container input[type="checkbox"]:checked + .checkbox-design .checkmark {
  opacity: 1 !important;
  color: white !important;
}

.consent-container .checkbox-design:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}

.consent-container input[type="checkbox"]:focus + .checkbox-design {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

/* Container */
.consent-container {
  margin-bottom: 1rem;
}

/* Consent Item Card */
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
}

/* Checkbox Wrapper */
.custom-checkbox {
  position: relative;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Hidden Native Checkbox */
.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 18px;
  height: 18px;
  position: absolute;
  cursor: pointer;
}

/* Custom Checkbox Design */
.checkbox-design {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px; /* unified shape */
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Checkmark */
.checkbox-design .checkmark {
  color: var(--primary-color);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Label */
.consent-item label {
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  cursor: pointer;
  flex: 1;
  text-align: right;
}

/* ===== SAFARI MOBILE FIXES ===== */

/* Safari mobile-specific viewport and scrolling fixes */
@supports (-webkit-touch-callout: none) {
  /* Target Safari only */
  
  /* Fix onboarding container height issues */
  .onboarding-container {
    min-height: 100vh !important;
    height: auto !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Ensure content area is scrollable */
  .onboarding-content {
    position: relative !important;
    height: calc(100vh - 120px) !important; /* Account for header and navigation */
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 2rem !important;
  }

  /* Fix question container layout in Safari */
  .question-container {
    position: relative !important;
    padding: 1rem !important;
    min-height: auto !important;
    display: block !important;
  }

  /* Ensure buttons are not cut off */
  .question-container + div {
    position: relative !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem !important;
    z-index: 10 !important;
  }

  /* Safari button positioning fix */
  #toSwiping {
    position: relative !important;
    width: auto !important;
    min-height: 44px !important; /* Apple recommended minimum touch target */
    padding: 1rem 3rem !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    margin: 0 auto !important;
  }

  /* Viewport unit fixes for Safari */
  @media (max-width: 768px) {
    .onboarding-overlay {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      height: 100% !important;
      width: 100% !important;
    }

    .onboarding-container {
      width: 100vw !important;
      max-width: 100vw !important;
      height: 100vh !important;
      position: relative !important;
      border-radius: 8px !important; /* Minimal rounding on very small screens */
    }

    /* Ensure proper scrolling behavior */
    .onboarding-content {
      height: calc(100vh - 140px) !important;
      max-height: calc(100vh - 140px) !important;
      padding: 1rem !important;
      padding-bottom: 3rem !important;
    }

    /* Options grid mobile fix */
    .options-grid {
      margin-bottom: 1rem !important;
      padding-bottom: 1rem !important;
    }

    /* Question titles mobile spacing */
    .question-title {
      margin-top: 1.5rem !important;
      margin-bottom: 1rem !important;
    }

    .question-title:first-of-type {
      margin-top: 0 !important;
    }

    /* Final button positioning */
    .question-container + div {
      position: sticky !important;
      bottom: 0 !important;
      background: white !important;
      padding: 1rem !important;
      margin-top: 1rem !important;
      margin-bottom: 0 !important;
      border-top: 1px solid #eee !important;
      z-index: 100 !important;
    }
  }

  /* Additional Safari landscape fixes */
  @media (max-width: 768px) and (orientation: landscape) {
    .onboarding-content {
      height: calc(100vh - 100px) !important;
      max-height: calc(100vh - 100px) !important;
    }

    .question-container + div {
      position: relative !important;
      background: transparent !important;
      border-top: none !important;
    }
  }
}


/* Shake animation for form validation errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* =========================== */
/* NEW HOMEPAGE STYLES         */
/* =========================== */

/* Fix desktop navigation text colors */
.main-nav a {
  color: #1a1a1a !important;
}

.main-nav a:hover {
  color: var(--primary-color) !important;
}

/* REMOVE BODY HEIGHT RESTRICTIONS */
html, body {
  height: auto !important;
}

body {
  display: block !important;
}

/* VIDEO BACKGROUND FOR HERO */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill container completely, crop if needed */
  object-position: center;
  background: #000;
  z-index: 1;
}

/* Responsive design for intro video on larger screens */
@media (min-width: 1000px) {
  .hero-section {
    height: 50vh; /* Fixed viewport height for consistent sizing */
    max-height: 600px; /* Maximum height cap */
    min-height: 400px; /* Minimum height for content */
    margin: 0; /* Remove all margins to eliminate blank spaces */
    padding: 0; /* Remove all padding */
  }
  
  .hero-video {
    object-fit: cover; /* Cover entire container */
    width: 100%;
    height: 100%;
    transform: none; /* Remove scale to prevent positioning issues */
  }
  
  .hero-overlay {
    padding: 6rem 0; /* Adjusted padding for better proportion */
  }
  
  .hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 2rem;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
}

/* For very large screens (1400px+) */
@media (min-width: 1400px) {
  .hero-section {
    height: 55vh; /* Slightly larger for very wide screens */
    max-height: 700px;
    margin: 0; /* Ensure no margins on ultra-wide screens */
  }
  
  .hero-section .container {
    max-width: 1400px;
    padding: 0 3rem;
  }
}

/* HERO OVERLAY SECTION */
.hero-overlay {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, 
    rgba(16, 24, 40, 0.95) 0%, 
    rgba(31, 41, 55, 0.9) 25%, 
    rgba(55, 65, 81, 0.85) 50%, 
    rgba(31, 41, 55, 0.9) 75%, 
    rgba(16, 24, 40, 0.95) 100%);
  backdrop-filter: blur(10px);
}

.hero-overlay .container {
  padding: 0 3rem;
}

.hero-overlay .hero-content {
  position: static !important;
  background: none !important;
  text-align: center;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.hero-overlay .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-overlay .hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

/* CONTENT SECTIONS */
.legacy-section,
.main-cta-section,
.steps-section,
.projects-section,
.services-section {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

.legacy-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.legacy-story {
  max-width: fit-content;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 1.5rem;
  /* padding: 1rem 3rem; */
}

.story-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.main-cta-section {
  background: var(--primary-color);
  text-align: center;
}

.main-cta-section .cta-button,
.main-cta-section .cta-button * {
  background: white !important;
  color: var(--primary-color) !important;
  border: 2px solid white !important;
}

.main-cta-section .cta-button .button-text,
.main-cta-section .cta-button span {
  color: var(--primary-color) !important;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* STEPS SECTION */
.steps-section {
  background: linear-gradient(45deg, #1f181a, rgb(0 0 0 / 66%));;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step-item {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF7A00, #FF4D00);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-description {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}

.step-item:hover .step-description {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}

/* PROJECTS SECTION */

.projects-menu-section {
  color: white;
}

.projects-section {
  color: white;
  background: linear-gradient(45deg, #f66200, rgb(0 0 0 / 66%));
}

/* New Horizontal Scrolling Projects Design */
.projects-carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0;
}

.projects-scroll-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.projects-scroll-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.projects-scroll-track .project-card {
  flex: 0 0 350px; /* Fixed width for consistent scrolling */
  height: 280px;
  scroll-snap-align: start;
}

/* Enhanced project status indicator */
.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 102, 0, 0.9);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 3;
}

/* Navigation Controls */
.projects-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.projects-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

.projects-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
}

.projects-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.projects-nav-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.projects-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects-nav-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

/* Old grid fallback for compatibility */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  padding: 0 1rem;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  height: 250px;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem 1.5rem 1.5rem;
  color: white;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-status.active {
  background: #28a745;
}

.project-status.sold {
  background: #6c757d;
}

/* SERVICES SECTION */
.services-section {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, #0c1b2b 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 102, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 1070px) {
  /* Hamburger button vertical centering */
  .hamburger-btn {
    color: #1a1a1a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    width: 44px !important;
    padding: 0 !important;
  }
  
  .hamburger-btn span {
    background: #1a1a1a !important;
    width: 24px !important;
    height: 3px !important;
    display: block !important;
    margin: 3px 0 !important;
  }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {

  /* Hamburger button vertical centering */
  .hamburger-btn {
    color: #1a1a1a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    width: 44px !important;
    padding: 0 !important;
  }
  
  .hamburger-btn span {
    background: #1a1a1a !important;
    width: 24px !important;
    height: 3px !important;
    display: block !important;
    margin: 3px 0 !important;
  }

  /* Fix mobile top-bar styling and sticky behavior */
  .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    height: 10vh !important;
    min-height: 70px !important;
  }
  
  .mobile-header {
    display: flex !important;
    padding: 0.5rem 1rem !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  /* Logo sizing: 65-70% of top-bar height */
  .mobile-logo {
    height: calc(10vh * 0.7) !important;
    max-height: 50px !important;
    min-height: 40px !important;
    width: auto !important;
  }
    
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .step-item {
    padding: 1.5rem;
  }
  
  .projects-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .legacy-section,
  .main-cta-section,
  .steps-section,
  .projects-section,
  .services-section {
    padding: 3rem 0;
  }
  
  .story-text {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  
  .hero-title {
    font-size: 1.7rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  /* Hero overlay mobile adjustments */
  .hero-overlay {
    padding: 1px;
  }
  
  .hero-overlay .container {
    padding: 0 1rem;
  }
  
  .hero-overlay .hero-content {
    padding: 1.5rem;
  }
  
  .hero-overlay .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero-overlay .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .step-item {
    padding: 1rem;
  }
  
  .step-title {
    font-size: 1.2rem;
  }
}

/* FOOTER SECTION */
.main-footer {
  background: var(--bg-light);
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Left: Social Media Icons */
.footer-social {
  display: flex;
  gap: 1rem;
}

/* Center: Legal Links */
.footer-legal ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary-color);
}

/* Right: Contact Info */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-item i {
  width: 16px;
}

/* Mobile: Only show social icons */
@media (max-width: 768px) {
  .footer-content {
    justify-content: center;
  }
  
  .footer-legal,
  .footer-contact {
    display: none !important;
  }
  
  .footer-social {
    justify-content: center;
  }
}

.social-links-bottom .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.social-links-bottom .social-link.facebook {
  background: #1877f2;
  color: white;
}

.social-links-bottom .social-link.linkedin {
  background: #0077b5;
  color: white;
}

.social-links-bottom .social-link.whatsapp {
  background: #25d366;
  color: white;
}

.social-links-bottom .social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Hide original fixed social links */
.social-fixed {
  display: none !important;
}

/* MODAL TEXT COLOR FIXES - INDIVIDUAL CONTROL */
/* Services Modal Content - Individual Rules */
.quantum-services {
  color: #ffffff !important;
}

.services-content {
  color: #ffffff !important;
}

.services-subtitle {
  color: #ffffff !important;
}

.tech-label {
  color: #ffffff !important;
}

/* About Modal Content - Individual Rules */
.quantum-timeline {
  color: #ffffff !important;
}

.legacy-story {
  color: #ffffff !important;
}

.timeline-description {
  color: #ffffff !important;
}

.story-text {
  color: #ffffff !important;
}

.about-content {
  color: #ffffff !important;
}

/* Override homepage white-on-white text issues */
.legacy-section .story-text {
  color: var(--text-primary) !important;
}

.steps-section .step-title {
  color: var(--text-primary) !important;
}

.steps-section .step-description {
  color: var(--text-secondary) !important;
}

/* Modal-specific overrides - Individual Control */
.modal-content .quantum-services {
  color: #ffffff !important;
}

.modal-content .services-content {
  color: #ffffff !important;
}

.modal-content .legacy-story {
  color: #ffffff !important;
}

.modal-content .about-content {
  color: #ffffff !important;
}

/* ENSURE MOBILE STICKY BEHAVIOR ON ALL BREAKPOINTS */
@media (max-width: 900px) {
  .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
  }
}

@media (max-width: 860px) {
  .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
  }
}

@media (max-width: 480px) {
  .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
  }
  
  .mobile-logo {
    height: 2rem !important;
    max-height: 2rem !important;
  }
  
  .mobile-header {
    padding: 0.3rem 0 !important;
  }
}
/* ========================================
   ENHANCED SECTIONS STYLING
   ======================================== */

/* 1. Premium Hero Showcase */
.premium-hero-showcase {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(44, 62, 80, 0.9) 50%, rgba(255, 102, 0, 0.3) 100%);
  position: relative;
  overflow: hidden;
}

.premium-hero-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(255, 102, 0, 0.1) 100%);
  pointer-events: none;
}

.premium-hero-content {
  position: relative;
  z-index: 2;
}

.premium-hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 102, 0, 0.3);
}

/* PREMIUM QUANTUM MARKETING HERO */
.hero-titles-container {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  position: relative;
}

.hero-titles-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.8;
}


.hero-subtitle-small {
  font-family: "Inter", "Heebo", sans-serif;
  font-size: 1.5rem !important;
  font-weight: 400;
  color: var(--primary-color);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  /* text-shadow: 0 0 20px rgba(255, 102, 0, 0.5); */
  line-height: 1.3;
  opacity: 0.95;
}

.hero-title-main {
  font-family: "Inter", "Heebo", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  /* text-shadow: 0 0 40px rgba(255, 102, 0, 0.3), 0 0 80px rgba(255, 102, 0, 0.2); */
  line-height: 1.1;
  background: linear-gradient(135deg, 
    #FFFFFF 0%, 
    var(--primary-color) 25%, 
    #FFFFFF 50%, 
    var(--primary-color) 75%, 
    #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: premiumShimmer 4s ease-in-out infinite;
  position: relative;
  white-space: nowrap;
}

@keyframes premiumShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-title-main::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.8;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}

.premium-hero-description {
  font-family: "Inter", "Heebo", sans-serif;
  color: rgba(248, 249, 250, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.7;
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  max-width: 650px;
  position: relative;
}

.premium-hero-cta {
  background: linear-gradient(135deg, 
    #1a1a1a 0%, 
    #2d2d2d 25%, 
    #1a1a1a 50%, 
    #2d2d2d 75%, 
    #1a1a1a 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.premium-hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 215, 0, 0.1), 
    transparent);
  transition: left 0.6s;
}

.premium-hero-cta::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    #FFD700 0%, 
    #FF6600 25%, 
    #FFD700 50%, 
    #FF6600 75%, 
    #FFD700 100%);
  background-size: 300% 300%;
  animation: premiumBorder 3s ease-in-out infinite;
  border-radius: inherit;
  z-index: -1;
}

@keyframes premiumBorder {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.premium-hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 0 50px rgba(255, 215, 0, 0.5),
    0 15px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-hero-cta:hover::before {
  left: 100%;
}

.premium-hero-cta .button-text {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
}

/* 2. Dynamic Stats Showcase */
.dynamic-stats-showcase {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.dynamic-stats-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(255, 102, 0, 0.05) 50%, transparent 100%);
  pointer-events: none;
}

.dynamic-stats-grid {
  position: relative;
  z-index: 2;
}

.dynamic-stat-card {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 102, 0, 0.05) 100%);
  border: 1px solid rgba(255, 102, 0, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.dynamic-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
  /* transition: left 0.6s ease; */
}

.dynamic-stat-card:hover::before {
  left: 100%;
}

.dynamic-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 102, 0, 0.2);
  border-color: rgba(255, 102, 0, 0.3);
}

.animated-counter {
  display: block;
  font-weight: 700;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.dynamic-stat-card .stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.dynamic-stats-cta-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.dynamic-stats-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
  box-shadow: 0 6px 24px rgba(255, 102, 0, 0.3);
}

/* 3. Flagship Projects Showcase */
.flagship-projects-showcase {
  background: linear-gradient(135deg, 
    #0a0a0a 0%, 
    #1a1a1a 25%, 
    #2d2d2d 50%, 
    #1a1a1a 75%, 
    #0a0a0a 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 102, 0, 0.2);
  border-bottom: 1px solid rgba(255, 102, 0, 0.2);
}

.flagship-projects-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 70%, rgba(255, 102, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(255, 102, 0, 0.05) 0%, transparent 60%),
    linear-gradient(45deg, transparent 30%, rgba(255, 102, 0, 0.02) 50%, transparent 70%);
  pointer-events: none;
  animation: quantumGlow 8s ease-in-out infinite;
}

@keyframes quantumGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.flagship-projects-grid {
  position: relative;
  z-index: 2;
}

.flagship-project-card {
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 40px rgba(255, 102, 0, 0.15),
    0 10px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  border: 1px solid rgba(255, 102, 0, 0.2);
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.95) 0%, 
    rgba(45, 45, 45, 0.9) 100%);
  backdrop-filter: blur(20px);
}

.flagship-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    transparent 0%, 
    rgba(255, 102, 0, 0.1) 50%, 
    rgba(255, 102, 0, 0.3) 100%);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.flagship-project-card:hover::before {
  opacity: 1;
}

.flagship-project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 
    0 0 60px rgba(255, 102, 0, 0.3),
    0 20px 80px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 102, 0, 0.5);
}

.flagship-projects-cta-container {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.flagship-projects-cta {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.95) 0%, 
    rgba(45, 45, 45, 0.9) 100%);
  color: #FFFFFF !important;
  border: 2px solid transparent;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 0 30px rgba(255, 102, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.flagship-projects-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    #FF6600 25%, 
    var(--primary-color) 50%, 
    #FF6600 75%, 
    var(--primary-color) 100%);
  background-size: 300% 300%;
  animation: premiumBorder 3s ease-in-out infinite;
  border-radius: inherit;
  z-index: -1;
}

.flagship-projects-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 0 50px rgba(255, 102, 0, 0.5),
    0 15px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.flagship-projects-cta .button-text {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Premium Projects Section Title */
.flagship-projects-showcase .section-title {
  color: #FFFFFF;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  text-shadow: 0 0 30px rgba(255, 102, 0, 0.3);
  background: linear-gradient(135deg, 
    #FFFFFF 0%, 
    var(--primary-color) 25%, 
    #FFFFFF 50%, 
    var(--primary-color) 75%, 
    #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: premiumShimmer 4s ease-in-out infinite;
}

.flagship-projects-showcase .section-title::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.8;
}

.flagship-projects-showcase .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.8;
}

/* 4. Marketing Methodology Showcase */
.marketing-methodology-showcase {
  background: linear-gradient(45deg, #1f181a, rgb(0 0 0 / 66%));
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.marketing-methodology-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(31, 24, 26, 0.8) 0%, transparent 70%);
  pointer-events: none;
}

.marketing-methodology-grid {
  position: relative;
  z-index: 2;
}

.methodology-step-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.methodology-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.1), transparent);
  /* transition: left 0.6s ease; */
}

.methodology-step-card:hover::before {
  left: 100%;
}

.methodology-step-card:hover {
  transform: translateY(-8px);
  background: #ffffff;
  border-color: rgba(255, 102, 0, 0.3);
  box-shadow: 0 12px 40px rgba(255, 102, 0, 0.2);
}

.methodology-step-card:hover .methodology-description {
  max-height: 200px;
  opacity: 1;
  margin-top: 1rem;
}

.methodology-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.methodology-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0;
}

.methodology-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}

.methodology-cta-container {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.methodology-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.4);
}

.methodology-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(255, 102, 0, 0.6);
}

/* 5. Decision Intelligence Showcase (Services) */
.decision-intelligence-showcase {
  background: linear-gradient(135deg, #f8f9fa 0%, rgba(255, 102, 0, 0.08) 50%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.decision-intelligence-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(255, 102, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(44, 62, 80, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.knowledge-cards-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.knowledge-card {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 102, 0, 0.03) 100%);
  border: 1px solid rgba(255, 102, 0, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.knowledge-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0);
}

.knowledge-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.knowledge-card:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 0 16px 48px rgba(255, 102, 0, 0.2);
  border-color: rgba(255, 102, 0, 0.3);
}

.knowledge-icon {
  font-size: 3rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(255, 102, 0, 0.3));
  transition: all 0.3s ease;
}

.knowledge-card:hover .knowledge-icon {
  transform: scale(1.1) rotateY(5deg);
  filter: drop-shadow(0 6px 12px rgba(255, 102, 0, 0.4));
}

.knowledge-title {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.knowledge-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.knowledge-cta-container {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.knowledge-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, #e55a00 100%);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.3);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.knowledge-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(255, 102, 0, 0.5);
}

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-counter.counting {
  animation: countUp 0.6s ease-out;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .dynamic-stats-showcase,
  .flagship-projects-showcase,
  .marketing-methodology-showcase,
  .decision-intelligence-showcase {
    padding: 3rem 0;
  }
  
  .knowledge-cards-grid,
  .flagship-projects-grid,
  .marketing-methodology-grid,
  .dynamic-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .flagship-projects-cta-container,
  .methodology-cta-container,
  .knowledge-cta-container {
    margin-top: 2.5rem;
  }
  
  .dynamic-stat-card,
  .methodology-step-card,
  .knowledge-card {
    padding: 1.5rem;
  }
  
  .animated-counter {
    font-size: 2rem;
  }
  
  .knowledge-icon {
    font-size: 2.5rem;
  }
}

/* ========================================
   FLAGSHIP PROJECTS CAROUSEL IMPROVEMENTS
   ======================================== */

/* Remove ALL hover effects for flagship project cards */
.flagship-projects-showcase .flagship-project-card:hover {
  transform: none !important;
  box-shadow:
    0 0 40px rgba(255, 102, 0, 0.15),
    0 10px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.flagship-projects-showcase .flagship-project-card:hover img {
  transform: none !important;
  filter: none !important;
}

.flagship-projects-showcase .flagship-project-card:hover::before {
  opacity: 0 !important;
}

/* Make the project overlay container transparent but keep children visible */
.flagship-projects-showcase .project-overlay {
  opacity: 1 !important;
  background: none !important;
  pointer-events: none;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  backdrop-filter: none !important;
}

/* Ensure images are clear and visible */
.flagship-projects-showcase .flagship-project-card img {
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Project status label - clean, consistent, always visible */
.flagship-projects-showcase .project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 102, 0, 0.9);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3;
  opacity: 1;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Project name (address) - elegant with gradient background */
.flagship-projects-showcase .project-name {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%);
  color: #333;
  padding: 0.5rem 0.9rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 3;
  opacity: 1;
  pointer-events: none;
  max-width: calc(100% - 2rem);
  text-align: right;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .flagship-projects-showcase .project-status {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }

  .flagship-projects-showcase .project-name {
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }
}

/* ========================================
   MODAL SCROLL LOCK ENHANCEMENT
   ======================================== */

/* When modal is active, prevent body scroll */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* Ensure modal content can scroll independently */
.modal-container {
  /* max-height: 100vh; */
  overscroll-behavior: contain; /* Prevents scroll chaining to background */
}

.modal-content {
  overscroll-behavior: contain; /* Prevents scroll chaining to background */
}

/* Fix for mobile devices */
@media (max-width: 768px) {
  body.modal-open {
    position: fixed !important;
    width: 100% !important;
  }
  
  .modal-container {
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
}