:root {
    --web-primary: #1D4ED8;
    --web-navy: #1E3A8A;
    --web-light: #F5F8FF;
}

.web-hero {
    background: linear-gradient(135deg, var(--web-light) 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}

.web-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.web-hero h1 {
    font-size: var(--text-h1) !important;
    font-weight: var(--text-h1-weight) !important;
    line-height: var(--text-h1-lh) !important;
    letter-spacing: var(--text-h1-ls) !important;
}

.web-grad-text {
    background: linear-gradient(135deg, var(--web-navy) 0%, var(--web-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.web-glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.web-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.web-floating-widget {
    position: absolute;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
    z-index: 10;
    border: 1px solid var(--sl100);
}

.web-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: left;
    border: 1px solid var(--sl100);
    transition: all 0.3s ease;
    height: 100%;
}

.web-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--sl200);
}

.web-icon-box {
    width: 60px;
    height: 60px;
    background: var(--sl50);
    color: var(--web-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.web-feature-card:hover .web-icon-box {
    background: var(--web-primary);
    color: #fff;
    transform: scale(1.1);
}

.process-card:hover .process-icon {
    background: var(--web-primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.timeline-container {
    position: relative;
    padding-left: 50px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: var(--sl200);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid var(--web-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--web-primary);
    z-index: 2;
    box-shadow: 0 0 0 4px #fff;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sl100);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.tech-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 0.75rem;
    text-align: center;
    border: 1px solid var(--sl100);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 165px;
    gap: 0.75rem;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--web-primary);
}

.tech-icon {
    width: 64px;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    line-height: 1;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.tech-icon i {
    font-size: 2.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon.dj-icon {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
 }

.tech-card:hover .tech-icon {
    transform: scale(1.12);
}

.tech-card h6 {
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.25;
}

.industry-card {
    padding: 2rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--sl100);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.industry-card:hover {
    background: var(--web-primary);
    color: #fff !important;
    transform: translateY(-5px);
}

.industry-card:hover  h6 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.industry-card:hover .industry-icon {
    color: #fff !important;
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sl100);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img-wrap {
    overflow: hidden;
    position: relative;
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.contact-cta-wrapper {
    background: linear-gradient(135deg, var(--web-navy) 0%, #111827 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    color: #fff;
}

.contact-cta-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
}

/* Process Gallery */
.process-gallery {
    display: flex;
    gap: 15px;
    height: 400px;
    width: 100%;
}

.process-card {
    flex: 1;
    border-radius: 20px;
    border: 1px solid var(--sl200);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.process-card.active {
    flex: 4;
    border-color: #d8b4fe;
    /* light purple */
    background: linear-gradient(135deg, #f3e8ff 0%, #ffffff 60%);
    cursor: default;
}

.pc-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--sl100);
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 1;
}

.process-card.active .pc-number {
    color: #e9d5ff;
}

/* Inactive State Content */
.pc-inactive-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 20px 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.2s, visibility 0.3s 0.2s;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.process-card.active .pc-inactive-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.pc-vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 700;
    color: var(--sl500);
    letter-spacing: 1px;
    #fff-space: nowrap;
    margin-top: auto;
    margin-bottom: 20px;
}

.pc-icon-small {
    width: 40px;
    height: 40px;
    background: #f3e8ff;
    color: #a855f7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Active State Content */
.pc-active-content {
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    padding: 40px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.process-card.active .pc-active-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease 0.3s, visibility 0.4s 0.3s;
}

.pc-active-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.pc-icon-large {
    width: 60px;
    height: 60px;
    background: #a855f7;
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pc-title {
    font-size: var(--text-h3);
    font-weight: var(--text-h3-weight);
    line-height: var(--text-h3-lh);
    color: #111827;
    margin: 0;
}

.pc-desc {
    color: var(--text-body-color);
    font-size: var(--text-body);
    line-height: var(--text-body-lh);
    max-width: 90%;
    margin: 0;
}

@media (max-width: 991px) {
    .process-gallery {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .process-card {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .process-card.active {
        flex: none;
        height: auto;
        min-height: 0;
        background: linear-gradient(135deg, #f3e8ff 0%, #ffffff 60%);
        border-color: #d8b4fe;
    }

    .pc-inactive-content {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 20px;
        top: auto;
        left: auto;
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

    .process-card.active .pc-inactive-content {
        display: none;
    }

    .pc-vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        margin: 0;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--sl800);
    }

    .pc-icon-small {
        width: 40px;
        height: 40px;
        background: #f3e8ff;
        color: #a855f7;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .pc-active-content {
        position: relative;
        display: none;
        width: 100%;
        height: auto;
        padding: 25px 20px;
        top: auto;
        left: auto;
        opacity: 0;
        visibility: hidden;
        z-index: 2;
    }

    .process-card.active .pc-active-content {
        display: flex;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pc-active-header {
        margin-bottom: 12px;
        gap: 12px;
    }

    .pc-icon-large {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .pc-title {
        font-size: var(--text-h3);
    }

    .pc-desc {
        font-size: var(--text-body);
        max-width: 100%;
        line-height: var(--text-body-lh);
    }

    .pc-number {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 2.5rem;
        opacity: 0.1;
        z-index: 1;
    }

    /* Hero floating widgets responsiveness */
    .web-floating-widget {
        padding: 8px 12px !important;
        gap: 8px !important;
        font-size: 0.8rem;
    }

    .web-floating-widget:first-of-type {
        top: -10px !important;
        right: 0px !important;
    }

    .web-floating-widget:last-of-type {
        bottom: -10px !important;
        left: 0px !important;
    }
}

@media (max-width: 768px) {

    .form-select,
    .form-control {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        text-overflow: ellipsis;
        #fff-space: nowrap;
        overflow: hidden;
    }

    .form-select {
        width: 100%;
        max-width: 100%;
    }
}