:root {
    --tech-theme: #2962ff;
    --structure-theme: #7c4dff;
    --marketing-theme: #d500f9;
    --medical-theme: #00bfa5;
    --logistics-theme: #ff9100;
    --bpo-theme: #00b8d4;
}

/* Fix overlap by adding styles for tech-solutions */
.modern-sync .tech-solutions {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: #000000;
    z-index: 5;
    margin-top: -100px;
    overflow: visible;
}

/* Add explicit z-index to tech-card */
.modern-sync .tech-card {
    position: relative;
    min-width: 300px;
    max-width: 300px;
    height: 300px;
    flex: 0 0 auto;
    z-index: 2;
    margin-bottom: 30px;
}

/* Service Page Header */
.service-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: rgba(255, 255, 255, 0.781);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: -50px;
}

.service-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.service-header p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.service-header .btn {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/service-pattern.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

/* Modern Sync Technologies Header */
.modern-sync .service-header {
    background: linear-gradient(135deg, var(--tech-theme) 0%, #60a5fa 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Medical Billing Header */
.medical-billing .service-header {
    background: linear-gradient(135deg, var(--medical-primary) 0%, #34d399 100%);
    background-image: url('../images/medical-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/* Modern Structure Header */
.modern-structure .service-header {
    background: linear-gradient(135deg, var(--construction-primary) 0%, #f59e0b 100%);
    background-image: url('../images/construction-bg.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

/* Service Content */
.service-content {
    padding: 100px 0;
}

.service-section {
    margin-bottom: 80px;
}

.service-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.service-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.modern-sync .service-section h2,
.modern-sync .feature-card i {
    color: var(--tech-theme);
}

.modern-sync .service-section h2:after {
    background: var(--tech-theme);
}

.medical-billing .service-section h2,
.medical-billing .feature-card i {
    color: var(--medical-primary);
}

.medical-billing .service-section h2:after {
    background: var(--medical-primary);
}

.modern-structure .service-section h2,
.modern-structure .feature-card i {
    color: var(--construction-primary);
}

.modern-structure .service-section h2:after {
    background: var(--construction-primary);
}

.service-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card p {
    margin-bottom: 0;
}

.service-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.process-step {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.modern-sync .step-number {
    background-color: var(--tech-theme);
}

.medical-billing .step-number {
    background-color: var(--medical-primary);
}

.modern-structure .step-number {
    background-color: var(--construction-primary);
}

.step-content {
    padding-top: 20px;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.modern-sync.tech-grid {
    position: relative; /* Normal flow */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
    width: 100%;
    z-index: 3; /* Higher stacking to ensure visibility */
    transform: none !important; /* Remove any transforms */
}

.tech-item {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tech-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modern-sync .tech-item h4 {
    color: var(--tech-theme);
}

.medical-billing .tech-item h4 {
    color: var(--medical-primary);
}

.modern-structure .tech-item h4 {
    color: var(--construction-primary);
}

/* Service CTA */
.service-cta {
    background-color: var(--light-gray);
    padding: 100px 0;
    text-align: center;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0% 100%);
}

.service-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

.modern-sync .service-cta {
    background-color: #f0f7ff;
}

.medical-billing .service-cta {
    background-color: #f0fdf4;
}

.modern-structure .service-cta {
    background-color: #fff7ed;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .tech-stack-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-stack-header {
        position: static;
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .mdw-stacked-card-area {
        width: 100%;
        padding-right: 0;
    }
    
    .tech-stack {
        height: auto;
        padding: 80px 0;

    }
}
@media (max-width: 768px) {
    .service-header {
        padding: 120px 0 80px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .service-header h1 {
        font-size: 2.5rem;
    }
    
    .service-header p {
        font-size: 1.1rem;
    }
    
    .service-section h2 {
        font-size: 2rem;
    }
    
    .service-cta {
        padding: 80px 0;
    }
    .stack-item {
        padding: 30px;
        height: 300px; /* Adjusted for smaller screens */
        max-height: 300px; /* Ensure minimum height */
        max-width: 320px; /* Full width on smaller screens */

    }
    
    .mdw-stacked-cards {
        width: 100%;
    }
    .mdw-stacked-card-area {
        width: 100%;
        padding-right: 0; /* Remove right padding for smaller screens */
    }
    .tech-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    }
    .tech-stack-header {
    padding: 20px;
    max-width: 100%;
    position: static;
    margin-bottom: 30px;
  }
  
  .tech-section-header h2 {
    font-size: 2rem;
  }
  
  .tech-section-header p {
    font-size: 1rem;
  }
  .animated-tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .tech-card {
        min-width: 280px; /* Slightly smaller for mobile */
        max-width: 280px;
        height: 420px;
        flex-shrink: 0;
    }
    .tech-stack{
        min-height:1300px;
    }
    .tech-stack-layout{
        display:none;
    }
}

@media (max-width: 576px) {
    .service-header {
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    
    .service-header h1 {
        font-size: 2rem;
    }
    
    .service-features,
    .service-process,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .animated-tech-grid {
        grid-template-columns: 1fr;
    }
    .modern-sync .tech-card {
        min-width: 100%;
        max-width: 100%;
        height: auto; /* Allow height to adjust based on content */
    }
    .mdw-stacked-card-area{
        max-width: 500px;
        min-height: 300px;
    }
}



/* MST CSS*/
/* Modern Sync Tech Specific Styles */
.modern-sync .tech-hero {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #1a237e 0%, #0d1440 100%);
    z-index: 1;
}
.modern-sync .hero {
    /* Reset any styles that might affect index.html */
    all: unset;
}
.tech-hero .container {
  position: relative;
  
  padding-bottom: 60px;
}
.modern-sync #particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.modern-sync .tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#particles-js, 
.tech-overlay, 
.tech-hero::before {
    margin-bottom: 0 !important;
}
.tech-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
    animation: fadeInUp 1s ease;
    z-index: 3;
}

.tech-title span {
    color: #3a86ff;
    position: relative;
}

.tech-title span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3a86ff;
    box-shadow: 0 0 10px #3a86ff;
}

.tech-subtitle {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;

    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.tech-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
    z-index: 10;
}

.btn-tech {
    background: linear-gradient(135deg, #3a86ff 0%, #2667cc 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-tech:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.4);
}

.btn-tech-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-tech-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

.tech-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #3a86ff, transparent);
    margin: 0 auto;
}

/* Tech Solutions Section */

.modern-sync .tech-solutions {
    position: relative;
    padding: 150px 0 100px;
    background-color: #000000;
    z-index: 5;
    margin-top: -100px;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
}

.tech-section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #1a237e;
    position: relative;
    display: inline-block;
    background: none;
    -webkit-text-fill-color: initial;
}

.tech-section-header h2 span {
    color: #3a86ff;
}

.tech-section-header h2:after {
    background: linear-gradient(90deg, #1a237e, #3a86ff);
}



.animated-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
    perspective: 1000px;
}

.tech-card {
    position: relative;
    width: 100%;
    height: 300px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}
/* Animation delays for each card */
.tech-card:nth-child(1) { animation-delay: 0.1s; }
.tech-card:nth-child(2) { animation-delay: 0.3s; }
.tech-card:nth-child(3) { animation-delay: 0.5s; }
.tech-card:nth-child(4) { animation-delay: 0.7s; }
.tech-card:nth-child(5) { animation-delay: 0.9s; }
.tech-card:nth-child(6) { animation-delay: 1.2s; }
.tech-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-solutions .container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.tech-solutions::-webkit-scrollbar {
        display: none;  /* Chrome, Safari and Opera */
    }
.stack-grid{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px; /* Changed from 20px 0 to add horizontal padding */
    width: 100%;
    justify-content: flex-start; /* Changed from center to flex-start */
    min-height: 500px;
    max-height: 600px;
    scroll-padding: 20px; /* Ensures cards stay within view when scrolling */
    scroll-snap-type: x proximity; /* Optional: improves scrolling behavior */
}
/* mdw */
/* Stacked Cards Effect */
.stack-container-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    margin-top:200px;
}
.mdw-stacked-card-area {
  --card-scroll-height: 400;
  --card-rotate: 6;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-right: 40px;
}

.mdw-stacked-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height:600px;
}

.mdw-stacked-cards > .stack-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-origin: bottom left;
}

.mdw-stacked-cards > .stack-item.mdw-active-card {
    transform: translateY(-90vh) rotate(-60deg) !important;
    transition: 1s;
    visibility: hidden;
    transform-origin: bottom left;
}

.mdw-stacked-card-area > .mdw-stacked-cards {
    position: sticky;
    top: 0;
}






.tech-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px; /* Changed from 20px 0 to add horizontal padding */
    width: 100%;
    justify-content: flex-start; /* Changed from center to flex-start */
    min-height: 500px;
    max-height: 600px;
    scroll-padding: 20px; /* Ensures cards stay within view when scrolling */
    scroll-snap-type: x proximity; /* Optional: improves scrolling behavior */
}
.tech-card-front, 
.tech-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 15px; /* Add border radius */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Add shadow */
}

.tech-card-front {
    background: white;
    transform: rotateY(0deg);
    z-index: 2;
}
selector{
    --card-scroll-height: 400;
    --card-rotate: 12;
}
selector .mdw-active-card{
    transform: translateY(-100vh) rotate(-60deg) !important;
    transition:1s;
    visibility: hidden;
    transform-origin: bottom left;
}
selector > .e-con,
selector > .e-container,
selector > .e-con-inner > .e-con,
selector > .e-con-inner > .e-container{
    position: sticky;
    top:0;
}

.tech-card-back {
    background: linear-gradient(135deg, #1a237e 0%, #0d1440 100%);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.tech-card:hover .tech-card-front {
    transform: rotateY(180deg);
}

.tech-card:hover .tech-card-back {
    transform: rotateY(360deg);
}

.tech-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a86ff 0%, #1a237e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 2rem;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a237e;
    width: 100%;
}

.tech-card-back h3 {
    color: white;
    margin-top: 10px;
    margin-bottom: 15px;
}

.tech-card p {
    text-align: center;
    margin-bottom: 25px;
    color: #64748b;
    padding: 0 10px;
}

.tech-card-back p {
    color: rgba(255, 255, 255, 0.8);
}

.tech-card-back ul {
    text-align: left;
    margin-bottom: 20px;
    padding-left: 20px;
    flex: 1;
    overflow-y: hidden;
}

.tech-card-back ul li {
    margin-bottom: 12px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.3;
}

.tech-card-back ul li::before {
    content: '•';
    color: #3a86ff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.tech-hover-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(58, 134, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a86ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.tech-hover-indicator i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.tech-card:hover .tech-hover-indicator i {
    transform: translateX(5px);
}
.tech-card-cta {
    padding: 10px 25px;
    background: #3a86ff;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
    align-self: center;
}

.tech-card-cta:hover {
    background: #2667cc;
    transform: translateY(-3px);
}

/* Tech Stack Section */
.tech-stack {
    padding: 100px 0;
    background: linear-gradient(to bottom, #000000, #112ea9, #020c33);
    height : 1000px;
    position: relative;

}
.tech-stack-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  height:800px;
}
.tech-stack-header {
  position:sticky;
  top: 120px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 10;
  max-width: 400px;
}
.tech-section-header h2 {
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
  line-height: 1.2;
}

.tech-section-header h2 span {
  color: #3a86ff;
  text-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
}

.tech-section-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Glow effect on hover */
.tech-stack-header:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(58, 134, 255, 0.3);
}
/* Calculate when to stop sticking */
.tech-stack-header::after {
  content: '';
  display: block;
  position: absolute;
  top: calc(100vh - 120px);
  height: 1px;
  width: 100%;
}
.tech-stack-cards {
    position: relative;
    flex: 1;
    width: 70%;
}

/* Custom scrollbar for horizontal scrolling */
.tech-grid::-webkit-scrollbar,
.stack-container::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.tech-grid::-webkit-scrollbar-track,
.stack-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    margin: 0 15px;
}

.tech-grid::-webkit-scrollbar-thumb,
.stack-container::-webkit-scrollbar-thumb {
    background: rgba(26, 35, 126, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.tech-grid::-webkit-scrollbar-thumb:hover,
.stack-container::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 35, 126, 0.5);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Hide scrollbar for a cleaner look while preserving functionality */
.tech-grid,
.stack-container {
    scrollbar-width: thin; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
}

/* Show scrollbar only on hover for a cleaner look */
.tech-grid:hover::-webkit-scrollbar-thumb,
.stack-container:hover::-webkit-scrollbar-thumb {
    background: rgba(26, 35, 126, 0.4);
}

.stack-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    margin-top: 50px;
    padding: 20px 0;
    width: 100%;
    justify-content: center;
    min-height: 500px;
}

.stack-item {
    width: 400px;  /* Fixed width */
    height: 500px; /* Equal height to make it square */
    padding: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
}



.stack-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a86ff 0%, #1a237e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.stack-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a237e;
}

.stack-item p {
    margin-bottom: 20px;
    color: #64748b;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tech-tags span {
    background: rgba(58, 134, 255, 0.1);
    color: #3a86ff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Process Timeline */
.tech-process {
    padding: 100px 0;
    background-color: #030d35;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #3a86ff, #1a237e);
    border-radius: 10px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    padding-left: 80px;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a86ff 0%, #1a237e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    position: absolute;
    left: 20px;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a237e;
}

.timeline-content p {
    color: #64748b;
}

/* .timeline-connector {
    position: absolute;
    left: 50px;
    top: 60px;
    width: 4px;
    height: calc(100% + 40px);
    background: linear-gradient(to bottom, #3a86ff, #1a237e);
    z-index: 1;
} */

/* Industries Section */
.tech-industries {
    padding: 100px 0;
    background: linear-gradient(to bottom, #040e36, #000000, #020c33);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.industry-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a86ff 0%, #1a237e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a237e;
}

.industry-card ul {
    text-align: left;
    padding-left: 20px;
}

.industry-card ul li {
    margin-bottom: 8px;
    position: relative;
    color: #64748b;
}

.industry-card ul li::before {
    content: '•';
    color: #3a86ff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* CTA Section */
.tech-cta {
    padding: 100px 0;
    background: linear-gradient(to bottom, #040e36, #000000, #020c33);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

#cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Footer */
.tech-footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 0;
}

.tech-footer .logo-img {
    filter: brightness(0) invert(1);
}

.tech-footer p {
    color: rgba(255, 255, 255, 0.7);
}

.tech-footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.tech-footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.tech-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.tech-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.tech-social a:hover {
    background: #3a86ff;
    transform: translateY(-3px);
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: #3a86ff;
}

/* Preloader */
.tech-loader {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

 .circuit-line {
    position: absolute;
    background: linear-gradient(90deg, #3a86ff 0%, #60a5fa 100%);
    box-shadow: 0 0 18px 4px #3a86ff, 0 0 32px 8px #60a5fa;
    filter: blur(0.5px) brightness(1.2);
    border-radius: 4px;
    opacity: 0.85;
    transition: box-shadow 0.3s, filter 0.3s;
}

.circuit-line:nth-child(1) {
    width: 100%;
    height: 4px;
    top: 18%;
    animation: circuit-pulse 1.5s infinite alternate;
}

.circuit-line:nth-child(2) {
    width: 4px;
    height: 80%;
    right: 30%;
    animation: circuit-pulse 1.5s infinite 0.5s alternate;
}



.loading-text {
    margin-top: 120px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.progress-bar {
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3a86ff, #1a237e);
    animation: progress-load 3s infinite;
}

@keyframes circuit-pulse {
    0% {
        opacity: 0.3;
        filter: blur(1.5px) brightness(1.1);
        box-shadow: 0 0 10px 2px #3a86ff, 0 0 18px 4px #60a5fa;
    }
    50% {
        opacity: 1;
        filter: blur(0.2px) brightness(1.3);
        box-shadow: 0 0 24px 8px #3a86ff, 0 0 40px 12px #60a5fa;
    }
    100% {
        opacity: 0.3;
        filter: blur(1.5px) brightness(1.1);
        box-shadow: 0 0 10px 2px #3a86ff, 0 0 18px 4px #60a5fa;
    }
}

@keyframes progress-load {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Header Glow Effect */
.tech-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(16, 46, 94, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tech-header:hover .tech-glow {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .tech-title {
        font-size: 3rem;
    }
    
    .tech-subtitle {
        font-size: 1.2rem;
    }
    
    .tech-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-tech, 
    .btn-tech-outline {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 15px;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-number {
        left: 0;
    }
    
    .header .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0f172a;
        z-index: 1000;
        transition: all 0.5s ease;
        padding-top: 80px;
    }
    
    .header .nav.active {
        left: 0;
    }
    
    .header .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .header .nav ul li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .tech-hero {
        padding: 120px 0 80px;
    }
}

@media (max-width: 768px) {
    .tech-title {
        font-size: 2.5rem;
    }
    
    .tech-grid, 
    .stack-container {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        padding: 20px;
        scroll-snap-type: x mandatory;
    }
    
    .tech-card,
    .stack-item {
        min-width: 280px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .timeline-item {
        padding-left: 0;
        flex-direction: column;
    }
    
    .timeline-number {
        position: static;
        margin-bottom: 20px;
    }
    
    .timeline-content {
        text-align: center;
    }
    
    .industry-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        padding: 120px 0 80px;
    }
    
    .service-header h1 {
        font-size: 2.5rem;
    }
    
    .service-header p {
        font-size: 1.1rem;
    }
    
    .service-section h2 {
        font-size: 2rem;
    }
    
    .stack-item {
        height: auto;
        min-height: 400px;
        padding: 30px;
    }
    
    .mdw-stacked-cards {
        height: auto;
    }
}

@media (max-width: 576px) {
    .tech-title {
        font-size: 2rem;
    }
    
    .tech-subtitle {
        font-size: 1rem;
    }
    
    .tech-card {
        height: auto;
        min-height: 300px;
    }
    
    .service-header {
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    
    .service-header h1 {
        font-size: 2rem;
    }
    
    .service-features,
    .service-process,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .animated-tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .tech-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tech-footer .footer-col {
        text-align: center;
    }
    
    .tech-social {
        justify-content: center;
    }
    
    .contact-info {
        align-items: center;
    }
}