/* --- Modern Portfolio/Our Solutions Section Enhancements --- */
.modern-portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 12px;
  justify-content: center;
}
.modern-portfolio-item {
  background: #232F3E;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(35,47,62,0.10);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
  position: relative;
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 240px;
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  animation: fadeInPortfolio 0.7s cubic-bezier(.77,0,.18,1) forwards;
}
.modern-portfolio-item:hover {
  box-shadow: 0 8px 32px 0 rgba(255,153,0,0.18);
  transform: translateY(-8px) scale(1.03);
  background: #26344a;
}
.modern-portfolio-img img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: filter 0.3s;
}
.modern-portfolio-item:hover .modern-portfolio-img img {
  filter: brightness(1.08) saturate(1.2);
}
.modern-portfolio-intro {
  padding: 10px 12px 8px 12px;
  text-align: left;
}
.work-title {
  color: #FF9900;
  font-size: 1.18em;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.modern-portfolio-item:hover .work-title {
  color: #fff;
}
.work-descr {
  color: #f3f6fa;
  font-size: 1em;
  opacity: 0.85;
}
@keyframes fadeInPortfolio {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.about-hero-image {
    width: 100%;
    max-width: 520px;
    min-width: 260px;
    border-radius: 32px;
    box-shadow: 0 12px 48px rgba(60,60,90,0.18), 0 0 0 0 #00e676;
    background: #fff;
    border: 4px solid transparent;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s, border-color 0.35s;
    will-change: transform, box-shadow, border-color;
    margin: 0 auto;
    display: block;
}
.about-hero-image:hover, .about-hero-image:focus {
    transform: scale(1.10) rotate(-2deg);
    border-color: #00e676;
    box-shadow: 0 24px 64px rgba(0,230,118,0.22), 0 0 0 8px #00e67644;
    z-index: 2;
}
.about-hero-image:active {
    animation: image-pulse 0.18s cubic-bezier(.4,2,.6,1);
}
@keyframes image-pulse {
    0% { transform: scale(1.10) rotate(-2deg); }
    50% { transform: scale(1.18) rotate(-2deg); }
    100% { transform: scale(1.10) rotate(-2deg); }
}
@media (max-width: 900px) {
    .about-hero-image {
        max-width: 340px;
        min-width: 180px;
    }
}
.about-hero-stat {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(60,60,90,0.08);
    padding: 18px 28px;
    text-align: center;
    min-width: 120px;
    margin-bottom: 8px;
    border: 3px solid transparent;
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), border-color 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
    cursor: pointer;
    will-change: transform, border-color, box-shadow;
}
.about-hero-stat:hover, .about-hero-stat:focus {
    transform: scale(1.13);
    border-color: #00e676;
    box-shadow: 0 6px 24px rgba(0,230,118,0.18);
    z-index: 2;
}
.about-hero-stat:active {
    animation: stat-pulse 0.18s cubic-bezier(.4,2,.6,1);
}
@keyframes stat-pulse {
    0% { transform: scale(1.13); }
    50% { transform: scale(1.22); }
    100% { transform: scale(1.13); }
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
.about-hero-section {
    min-height: 100vh !important;
    height: 100dvh !important;
    width: 100vw;
    min-height: 100vh !important;
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: center;
    background: linear-gradient(120deg, #e0f7fa 0%, #f5f7fa 100%);
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
}
.about-hero-bg {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    z-index: 2;
}
.about-hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    padding: 56px 32px 56px 32px;
    gap: 56px;
    min-height: calc(100dvh - 64px);
    height: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.93);
    border-radius: 32px;
    box-shadow: 0 8px 48px rgba(60,60,90,0.10);
    animation: aboutFadeIn 1.2s cubic-bezier(.4,2,.6,1);
}

@keyframes aboutFadeIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.about-hero-left, .about-hero-right {
    min-height: 0;
    padding: 0 12px;
}
@media (max-width: 900px) {
    .about-hero-content {
        flex-direction: column;
        gap: 32px;
        padding: 32px 10px;
        min-height: 100vh;
    }
    .about-hero-left, .about-hero-right {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    .about-hero-image {
        max-width: 320px;
    }
}
/* Full-page Our Story (About Us) Hero Section */
.about-hero-section {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #e0f7fa 0%, #f5f7fa 100%);
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.about-hero-bg {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 48px 32px;
    gap: 48px;
}
.about-hero-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 320px;
    max-width: 540px;
}
.about-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.about-hero-heading {
    font-size: 2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 24px;
}
.about-hero-desc {
    font-size: 1.13rem;
    color: #444;
    margin-bottom: 32px;
    line-height: 1.7;
    background: #f5f7fa;
    border-radius: 12px;
    padding: 18px 18px 16px 18px;
    box-shadow: 0 2px 8px rgba(60,60,90,0.04);
}
.about-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-top: 8px;
}
.about-hero-stat {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(60,60,90,0.08);
    padding: 18px 28px;
    text-align: center;
    min-width: 120px;
    margin-bottom: 8px;
}
.about-hero-stat .num {
    font-size: 1.7em;
    font-weight: 700;
    color: #43e97b;
    display: block;
}
.about-hero-stat .label {
    font-size: 1em;
    color: #1a237e;
    margin-top: 4px;
}
.about-hero-right {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    max-width: 500px;
}
.about-hero-image {
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(60,60,90,0.10);
    background: #fff;
}
@media (max-width: 900px) {
    .about-hero-content {
        flex-direction: column;
        gap: 32px;
        padding: 32px 10px;
    }
    .about-hero-left, .about-hero-right {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    .about-hero-image {
        max-width: 320px;
    }
}
/* Modern About Us Section */
.about-modern-section {
    background: linear-gradient(135deg, #e0f7fa 0%, #f5f7fa 100%);
    padding: 80px 0 40px 0;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}
.about-modern-bg {
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(60,60,90,0.08);
    padding: 48px 32px 32px 32px;
    max-width: max-content;
    margin:  auto;
}
.about-modern-content {
    text-align: center;
}
.modern-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a237e;
    letter-spacing: 1px;
}
.modern-heading {
    font-size: 1.6rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 16px;
}
.about-modern-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}
.about-modern-tab {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(60,60,90,0.06);
    padding: 32px 24px;
    min-width: 260px;
    max-width: 320px;
    flex: 1 1 260px;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    opacity: 0.85;
}
.about-modern-tab.active, .about-modern-tab:hover {
    box-shadow: 0 8px 32px rgba(60,60,90,0.13);
    transform: translateY(-4px) scale(1.03);
    opacity: 1;
}
.about-modern-text {
    font-size: 1.08rem;
    color: #444;
    margin-top: 12px;
}
.about-modern-skills {
    margin-top: 10px;
}
.about-modern-skill {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
}
.about-modern-skill span:first-child {
    width: 90px;
    color: #1a237e;
    font-weight: 500;
}
.about-modern-bar {
    background: #e0e0e0;
    border-radius: 8px;
    flex: 1;
    height: 10px;
    margin: 0 10px;
    overflow: hidden;
}
.about-modern-bar > div {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    height: 100%;
    border-radius: 8px;
}
.about-modern-percent {
    width: 36px;
    text-align: right;
    color: #333;
    font-size: 0.98em;
}
.about-modern-process {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 10px;
}
.about-modern-process-item {
    background: #f5f7fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(60,60,90,0.06);
    padding: 18px 20px;
    min-width: 120px;
    text-align: center;
}
.about-modern-process-item .num {
    font-size: 1.6em;
    font-weight: 700;
    color: #43e97b;
    display: block;
}
.about-modern-process-item .icon {
    font-size: 1.5em;
    color: #1a237e;
    margin: 6px 0;
    display: block;
}
.about-modern-process-item .label {
    font-size: 1em;
    color: #333;
}

/* Modern Service Cards */
.modern-service-card {
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(60,60,90,0.10);
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    padding: 32px 20px 28px 20px;
    margin: 10px 8px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modern-service-card:hover {
    box-shadow: 0 12px 36px rgba(60,60,90,0.18);
    transform: translateY(-6px) scale(1.04);
    background: linear-gradient(135deg, #e0f7fa 0%, #fff 100%);
}
.modern-service-card .service-icon {
    font-size: 2.5em;
    color: #43e97b;
    margin-bottom: 18px;
}
.modern-service-card .service-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 10px;
}
.modern-service-card .service-excerpt {
    color: #444;
    font-size: 1em;
    margin-top: 0;
    flex: 1;
}

/* Modern Portfolio Grid */
.modern-portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 36px; /* more vertical and horizontal gap */
    justify-content: center;
    margin-top: 36px;
}
.modern-portfolio-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(60,60,90,0.10);
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(.4,2,.6,1), transform 0.3s cubic-bezier(.4,2,.6,1), border-color 0.22s;
    width: 280px;
    margin: 0;
    padding: 12px 10px 18px 10px;
    border: 1.5px solid #f5f5f5;
}
.modern-portfolio-item:hover {
    box-shadow: 0 16px 40px rgba(45,140,240,0.16), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-10px) scale(1.06);
    border-color: #2d8cf0;
}
.modern-portfolio-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    margin-top: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.4s cubic-bezier(.4,2,.6,1), transform 0.4s cubic-bezier(.4,2,.6,1), filter 0.4s;
}
.modern-portfolio-item:hover .modern-portfolio-img img {
    box-shadow: 0 12px 36px rgba(45,140,240,0.20);
    transform: scale(1.10) rotate(-2deg);
    filter: brightness(1.08) saturate(1.18);
    animation: portfolio-img-pop 0.5s;
}
.modern-portfolio-item {
    margin-bottom: 36px;
}
@keyframes portfolio-img-pop {
    0% { transform: scale(1) rotate(0deg); }
    60% { transform: scale(1.13) rotate(-3deg); }
    100% { transform: scale(1.10) rotate(-2deg); }
}
.modern-portfolio-intro {
    padding: 10px 10px 0 10px;
    text-align: center;
}
.modern-portfolio-intro .work-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}
.modern-portfolio-intro .work-descr {
    color: #2d8cf0;
    font-size: 1.01rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
/* Custom styles for curved section dividers */
.section-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1; /* Ensure it's above the background but below content */
}
.section-divider-top {
    top: -1px;
}
.section-divider-bottom {
    bottom: -1px;
}
.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px; /* Adjust the height of the curve */
}

/* Styles for Center Mode Carousel Effect */
.services-carousel .owl-wrapper-outer {
    padding: 20px 0; /* Add padding to prevent clipping of scaled items */
}

.services-carousel .owl-item {
    transform: scale(0.9);
    opacity: 0.7;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.services-carousel .owl-item.center-slide {
    transform: scale(1);
    opacity: 1;
}
/* Custom styles for the services carousel */
.services-carousel .owl-nav {
    margin-top: 0;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.services-carousel .owl-prev,
.services-carousel .owl-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    width: 44px;
    height: 44px;
    line-height: 44px !important;
    border-radius: 50%;
    text-align: center;
    font-size: 24px !important;
    pointer-events: all;
    transition: all 0.3s ease;
}

.services-carousel .owl-prev:hover,
.services-carousel .owl-next:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

.services-carousel .owl-prev { left: -60px; }
.services-carousel .owl-next { right: -60px; }

@media (max-width: 1300px) {
    .services-carousel .owl-prev { left: -20px; }
    .services-carousel .owl-next { right: -20px; }
}

@media (max-width: 767px) {
    .services-carousel .owl-nav { display: none; }
}

/* Styles for Interactive Service Cards (used in both grid and carousel) */
.service-card-link {
    text-decoration: none;
    color: inherit;
}
.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}
.service-card .service-icon {
    font-size: 42px;
    color: #333; /* Theme color can be used here */
    background-color: #f0f0f0;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.service-card .service-title {
    font-size: 1.15rem; /* 18.4px */
    font-weight: 700;
    margin-bottom: 15px;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    color: #ffffff; /* White icon on hover */
    background-color: #007bff; /* A nice blue, or your theme's primary color */
}
.service-card .service-excerpt {
    font-size: 0.9rem; /* 14.4px */
    color: #555;
    line-height: 1.6;
}
