/* Section Styling */
.expertise-section {
    padding: 80px 0 30px;
    background: linear-gradient(135deg, #f0f4ff, #dbeafe);
    text-align: center;
}

/* Section Heading */
.section-heading h4 {
    font-size: 36px;
    font-weight: bold;
    color: #222;
    margin-bottom: 50px;
}

/* Expertise Grid Layout */
.expertise-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: -30px;
    /* Moves section up */
}

/* Expertise Box Styling */
.expertise-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    width: 320px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.expertise-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid #1832dc;
}



/* Icon Styling */
.icon-container {
    font-size: 64px;
    color: #007bff;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

/* Icon Hover Animation */
.expertise-box:hover .icon-container {
    transform: scale(1.2);
    
}

/* Title */
.expertise-box h5 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

/* Description */
.expertise-box p {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
}


.animated-text {
  font-size: 48px;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 1.5s ease-in-out forwards;
}


.sub-menu {
    display: none;
    position: absolute;
    background: #ffffff;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


.main-services {
    padding: 60px 0;
}

.service-item {
    margin-bottom: 30px;
}

.service-item img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.left-text-content h4,
.right-text-content h4 {
    font-size: 24px;
    font-weight: 600;
}

.left-text-content p,
.right-text-content p {
    font-size: 16px;
    color: #666;
}

.right-text-content i {
    font-size: 40px;
    color: #f4b400;
    margin-bottom: 20px;
}

.right-text-content {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.service-item .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.last-service {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .service-item {
        text-align: center;
    }

    .service-item img {
        margin-bottom: 20px;
    }

    .left-text-content,
    .right-text-content {
        padding: 15px;
    }
}

/* Show the first-level submenu when hovering over 'Services' */
li:hover>.sub-menu {
    display: block;
}

@media (max-width: 768px) {
    .sub-menu {
        position: absolute;
        left: 65%;
        transform: translateX(-30%);
        background: #2a2e45;
        padding: 10px 15px;
        border-radius: 2px;
        width: max-content;
        text-align: center;
        z-index: 1000;
    }

    .sub-menu.active {
        display: block;
    }
}



/* Style for second-level submenu */


/* Show the second-level submenu when hovering over 'Semiconductor' */


/* Style the dropdown icons */
.dropdown-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}



/* Adjust the arrow direction for the second-level menu */


/* Fade-in Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .animated-text {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .animated-text {
    font-size: 28px;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
    .expertise-grid {
        flex-direction: column;
        align-items: center;
    }
}