/* ==========================================================================
   SERVICES SECTION - HORIZONTAL PILL LAYOUT
   ========================================================================== */

/* --- Horizontal 3-Column Container --- */
.services-horizontal-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    min-height: 600px;
}

@media (max-width: 1024px) {
    .services-horizontal-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 60px;
        padding-bottom: 40px;
    }

    .service-center-image {
        order: 2;
        /* Put image between the two cards */
        margin-bottom: 20px;
    }

    .pill-image-container {
        width: 280px;
        height: 400px;
    }

    .service-side-card {
        width: 100%;
        max-width: 500px;
        min-height: auto;
    }

    .service-stack-android {
        order: 1;
        /* Android card first */
    }

    .service-stack-flutter {
        order: 3;
        /* Flutter card last */
    }
}

@media (max-width: 768px) {
    .pill-image-container {
        width: 100%;
        max-width: 300px;
        height: 420px;
    }

    /* Hide some decorative elements on mobile to prevent overflow */
    .pill-hexagon-2,
    .pill-triangle,
    .pill-square {
        display: none;
    }

    .pill-image-container:hover {
        transform: none;
    }
}

/* ==========================================================================
   CENTER: PILL-SHAPED DEVELOPER IMAGE
   ========================================================================== */

.service-center-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* Pill Image Container */
.pill-image-container {
    position: relative;
    width: 320px;
    max-width: 100%;
    height: 480px;
    border-radius: 160px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.pill-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Pill Glow Effect */
.pill-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.2), transparent 70%);
    filter: blur(40px);
    animation: pillGlowPulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pillGlowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Developer Image */
.pill-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 10;
}

.pill-image-container:hover img {
    transform: scale(1.1);
}

/* Decorative Animated Circles */
.pill-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15));
    animation: pillCircleFloat 8s ease-in-out infinite;
    z-index: 2;
    filter: blur(1px);
}

.pill-circle-1 {
    width: 120px;
    height: 120px;
    top: -20px;
    right: 10%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.15));
    animation-delay: 0s;
}

.pill-circle-2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: -10px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.15));
    animation-delay: 2s;
}

.pill-circle-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    left: -20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.15));
    animation-delay: 4s;
}

.pill-circle-4 {
    width: 100px;
    height: 100px;
    bottom: 5%;
    right: 15%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.12));
    animation-delay: 1.5s;
}

.pill-circle-5 {
    width: 70px;
    height: 70px;
    top: 20%;
    right: -25px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.15));
    animation-delay: 3s;
}

.pill-circle-6 {
    width: 90px;
    height: 90px;
    bottom: 30%;
    right: 5%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(245, 158, 11, 0.12));
    animation-delay: 5s;
}

@keyframes pillCircleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.9;
    }
}

/* Geometric Shapes Around Pill */
.pill-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: pillShapeFloat 7s ease-in-out infinite;
    z-index: 5;
    overflow: hidden;
}

/* Inner Glow for Shapes */
.shape-inner-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.4), transparent 60%);
    animation: innerGlowPulse 3s ease-in-out infinite;
}

@keyframes innerGlowPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.pill-hexagon-1 {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.3));
    animation-delay: 0s;
}

.pill-hexagon-2 {
    width: 50px;
    height: 50px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    bottom: 15%;
    right: -65px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    animation-delay: 2s;
}

.pill-triangle {
    width: 0;
    height: 0;
    border-left: 28px solid transparent;
    border-right: 28px solid transparent;
    border-bottom: 50px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(5px);
    top: 35%;
    right: -70px;
    animation-delay: 1s;
}

.pill-square {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
    border-radius: 10px;
    top: 60%;
    left: -55px;
    transform: rotate(15deg);
    animation-delay: 3.5s;
}

@keyframes pillShapeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-25px) rotate(15deg);
        opacity: 1;
    }
}

/* Glowing Orbs */
.pill-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    animation: pillOrbPulse 5s ease-in-out infinite;
    z-index: 3;
}

.pill-orb-1 {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.7), rgba(59, 130, 246, 0.1));
    top: 18%;
    left: -45px;
    animation-delay: 0s;
}

.pill-orb-2 {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.7), rgba(168, 85, 247, 0.1));
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.5s;
}

.pill-orb-3 {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.6), rgba(16, 185, 129, 0.1));
    top: 45%;
    right: -50px;
    animation-delay: 1.5s;
}

@keyframes pillOrbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Animated Grid Background */
.pill-grid-background {
    position: absolute;
    inset: -100px;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Floating Particles */
.pill-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: particleFloat 10s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 80%;
    top: 40%;
    animation-delay: 1.5s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    left: 30%;
    top: 70%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    left: 60%;
    top: 15%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 45%;
    top: 85%;
    animation-delay: 4s;
    animation-duration: 11s;
}

.particle:nth-child(6) {
    left: 90%;
    top: 60%;
    animation-delay: 5s;
    animation-duration: 13s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0.8;
    }
}

/* Code Snippets Overlay */
.code-snippet {
    position: absolute;
    padding: 8px 12px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    backdrop-filter: blur(10px);
    animation: codeFloat 6s ease-in-out infinite;
    z-index: 6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0.8;
}

.code-snippet-1 {
    top: 12%;
    right: 50px;
    animation-delay: 0s;
}

.code-snippet-2 {
    bottom: 20%;
    left: 50px;
    animation-delay: 3s;
}

.code-keyword {
    color: #ff79c6;
}

.code-function {
    color: #50fa7b;
}

.code-class {
    color: #8be9fd;
}

@keyframes codeFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-12px);
        opacity: 1;
    }
}


/* ==========================================================================
   SIDE SERVICE CARDS
   ========================================================================== */

.service-side-card {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.8), rgba(15, 15, 18, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    min-height: 450px;
}

.service-side-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Card Background Gradient */
.stack-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 24px;
    pointer-events: none;
}

.service-stack-android .stack-card-bg {
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15), transparent 70%);
}

.service-stack-flutter .stack-card-bg {
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15), transparent 70%);
}

.service-side-card:hover .stack-card-bg {
    opacity: 1;
}

/* Card Content */
.stack-card-content {
    position: relative;
    z-index: 2;
}

/* Stack Header - Icon and Badge Side by Side */
.stack-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* Card Header */
.stack-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.stack-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.4s ease;
}

.service-stack-android .stack-icon {
    color: #60a5fa;
}

.service-stack-flutter .stack-icon {
    color: #10b981;
}

.service-side-card:hover .stack-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Badge */
.stack-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-left: auto;
    transition: all 0.3s ease;
}

.service-side-card:hover .stack-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Title */
.stack-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.service-side-card:hover .stack-title {
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.stack-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.service-side-card:hover .stack-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* Benefits List */
.stack-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.benefit-item i {
    font-size: 16px;
    color: #10b981;
    transition: all 0.3s ease;
}

.service-side-card:hover .benefit-item {
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
}

.service-side-card:hover .benefit-item i {
    color: #34d399;
    transform: scale(1.1);
}

/* Arrow */
.stack-arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stack-arrow i {
    font-size: 18px;
    color: white;
}

.service-side-card:hover .stack-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-stack-android:hover .stack-arrow {
    background: rgba(59, 130, 246, 0.2);
}

.service-stack-flutter:hover .stack-arrow {
    background: rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   WIDE SERVICE OFFERINGS CARD
   ========================================================================== */

.service-offerings-card {
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.8), rgba(15, 15, 18, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 48px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-offerings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.offerings-header {
    text-align: center;
    margin-bottom: 48px;
}

.offerings-title {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.offerings-icon {
    font-size: 32px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.offerings-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Service Side Cards */
.services-horizontal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.service-side-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.8), rgba(15, 15, 18, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 36px;
    cursor: pointer;
    position: relative;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.service-side-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-side-card:hover::before {
    opacity: 1;
}

.stack-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.stack-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Stack Benefits - Horizontal Grid */
.stack-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 24px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.benefit-item i {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

.offering-item {
    background: linear-gradient(145deg, rgba(30, 30, 33, 0.6), rgba(20, 20, 23, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.offering-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.offering-item:hover::before {
    opacity: 1;
}

.offering-item:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.offering-icon-wrapper {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.offering-item:hover .offering-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(168, 85, 247, 0.25));
    border-color: rgba(59, 130, 246, 0.4);
}

.offering-icon {
    font-size: 26px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offering-content {
    flex: 1;
}

.offering-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.offering-item:hover .offering-title {
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offering-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.offering-item:hover .offering-desc {
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .services-horizontal-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pill-image-container {
        width: 280px;
        height: 420px;
        border-radius: 140px;
    }

    .service-side-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pill-image-container {
        width: 240px;
        height: 360px;
        border-radius: 120px;
    }

    .service-side-card {
        padding: 24px;
        min-height: auto;
    }

    .stack-title {
        font-size: 24px;
    }

    .stack-desc {
        font-size: 14px;
    }

    .stack-arrow {
        bottom: 24px;
        right: 24px;
        width: 38px;
        height: 38px;
    }

    .service-offerings-card {
        padding: 32px 24px;
        margin-top: 60px;
    }

    .offerings-title {
        font-size: 28px;
    }

    .offerings-subtitle {
        font-size: 16px;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .offering-item {
        padding: 20px;
    }

    .code-snippet {
        display: none;
    }
}

/* ==========================================================================
   SERVICE MODAL (Keep existing styles)
   ========================================================================== */

.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.service-modal-content {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.95), rgba(15, 15, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 550px;
    max-height: 80vh;
    border-radius: 20px;
    padding: 28px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
}

.service-modal-overlay.active .service-modal-content {
    transform: translateY(0) scale(1);
}

/* Custom Scrollbar */
.service-modal-content::-webkit-scrollbar {
    width: 6px;
}

.service-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 3px;
}

.service-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

@media (max-width: 768px) {
    .service-modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 24px !important;
    }

    .service-modal-close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
    }

    .service-modal-title {
        font-size: 24px;
    }

    .modal-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-modal-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .modal-icon-box {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
}

.service-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-modal-close:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    transform: rotate(90deg);
}

.modal-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #3B82F6;
    font-size: 24px;
}

.service-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.service-modal-desc {
    color: #a0a0a0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-detail-item h5 {
    font-size: 14px;
    color: #3B82F6;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-detail-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-detail-item li {
    color: #ddd;
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-detail-item li::before {
    content: '•';
    color: #3B82F6;
}

.service-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3B82F6;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    gap: 10px;
}

.service-modal-btn:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    color: #fff;
}

/* ==========================================================================
   ADDITIONAL MOBILE IMPROVEMENTS
   ========================================================================== */

/* Mobile: Stack benefits in single column */
@media (max-width: 600px) {
    .stack-benefits {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .benefit-item {
        font-size: 13px !important;
    }

    .service-side-card {
        padding: 24px !important;
        min-height: auto !important;
    }

    .stack-title {
        font-size: 22px !important;
    }

    .stack-desc {
        font-size: 14px !important;
    }

    .stack-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 24px !important;
    }

    .stack-badge {
        font-size: 9px !important;
        padding: 5px 10px !important;
    }
}

/* Very small mobile devices */
@media (max-width: 375px) {
    .service-side-card {
        padding: 20px !important;
    }

    .stack-header {
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .stack-title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }

    .stack-desc {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }

    .benefit-item {
        font-size: 12px !important;
        gap: 8px !important;
    }

    .benefit-item i {
        font-size: 14px !important;
    }
}