/* --- SERVICE DETAIL PAGE STYLES --- */
.detail-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--charcoal) 0%, #2d2d2d 100%);
}

.detail-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin: 20px 0;
}

.detail-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 550px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* .process-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px 30px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
} */

.process-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    background: rgba(45, 139, 125, 0.1);
    border-color: var(--teal);
    transform: translateY(-10px);
}

.service-step-num {
    position: absolute;
    top: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--teal);
    opacity: 0.05;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: 0.5s ease;
}

.card-inner {
    position: relative;
    z-index: 2; /* Sits above the ghost number */
}

.card-icon-small {
    color: var(--teal);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.process-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.process-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 0;
    font-size: 1.2rem;
}

.tech-icons span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.bg-darker { 
    background: #1a1a1a; 
    padding: 60px 0; 
}

.process-card:hover .service-step-num {
    opacity: 0.2;
    transform: translateY(10px);
}

.modern-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(45, 139, 125, 0.1);
    color: var(--teal);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .detail-hero {
        padding: 120px 0 60px;
    }

    .detail-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 100px 0 50px;
    }

    .detail-hero h1 {
        font-size: 2.2rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .process-card {
        padding: 40px 25px 30px;
    }

    .service-step-num {
        font-size: 6rem;
        top: -10px;
    }

    .tech-icons {
        gap: 25px;
        padding: 30px 0;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .detail-hero {
        padding: 80px 0 40px;
    }

    .detail-hero h1 {
        font-size: 1.8rem;
        margin: 15px 0;
    }

    .detail-hero p {
        font-size: 0.95rem;
    }

    .process-card {
        padding: 30px 20px 25px;
    }

    .process-card h3 {
        font-size: 1.1rem;
    }

    .process-card p {
        font-size: 0.9rem;
    }

    .card-icon-small {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .service-step-num {
        font-size: 5rem;
        top: -5px;
    }

    .tech-icons {
        gap: 15px;
        padding: 20px 0;
        font-size: 0.9rem;
    }

    .tech-icons span {
        gap: 5px;
    }
}

.sdlc-visual-container {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 80px 0;
    position: relative;
}

.sdlc-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central Logo Style */
.sdlc-core {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(45, 139, 125, 0.3);
    border: 2px solid var(--teal);
}

.core-logo {
    width: 60%;
    filter: brightness(0.5); /* Adjust based on logo color */
}

/* Rotating Nodes */
.sdlc-node {
    position: absolute;
    width: 80px;
    text-align: center;
    /* This formula distributes icons in a circle */
    transform: rotate(calc(360deg / 6 * var(--i))) translateX(180px) rotate(calc(-360deg / 6 * var(--i)));
    transition: 0.5s;
    z-index: 5;
}

.node-icon {
    width: 50px;
    height: 50px;
    background: var(--charcoal);
    color: var(--teal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin: 0 auto 10px;
    border: 1px solid var(--teal);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sdlc-node span {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* Orbit Path Animation */
.orbit-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: rotateOrbit 20s linear infinite;
}

.orbit-svg circle {
    fill: none;
    stroke: rgba(45, 139, 125, 0.2);
    stroke-width: 2;
    stroke-dasharray: 10, 10;
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hover Interaction */
.sdlc-node:hover .node-icon {
    background: var(--teal);
    color: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--teal);
}

/* --- MODERN SDLC LAYOUT WRAPPER --- */
.sdlc-modern-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    position: relative;
    padding-bottom: 50px;
}

/* Side Card Columns */
.side-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
    z-index: 5;
}

/* Adjusting Card widths for side view */
.side-cards .process-card {
    max-width: 400px;
    width: 100%;
}

.side-cards.left {
    align-items: flex-end; /* Align cards toward center */
}

.side-cards.right {
    align-items: flex-start; /* Align cards toward center */
}

/* Central Animation Container Adjustments */
.sdlc-visual-container {
    flex: 1.5; /* Give more space to the center visual */
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* Remove margin as parent handles gap */
    position: relative;
}

/* --- STEP NUMBER RE-POSITIONING FOR SIDE VIEW --- */
/* Placing numbers in the background corner so they don't move text */
.side-cards.left .service-step-num {
    right: 10px;
    left: auto;
}

.side-cards.right .service-step-num {
    left: 10px;
    right: auto;
}

/* --- ANIMATED TECHNOLOGY SECTION UPDATES --- */
.tech-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.tech-icons span {
    display: flex;
    flex-direction: column; /* Stack icon and text */
    align-items: center;
    gap: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255,255,255,0.02);
    min-width: 120px;
    border: 1px solid rgba(255,255,255,0.05);
}

.tech-icons span i {
    font-size: 2.5rem;
    color: var(--teal);
    transition: transform 0.3s ease;
}

.tech-icons span:hover {
    background: rgba(45, 139, 125, 0.1);
    transform: translateY(-5px);
    border-color: var(--teal);
}

.tech-icons span:hover i {
    transform: scale(1.1);
    color: var(--white);
}

/* --- MOBILE RESPONSIVENESS UPDATES --- */
@media (max-width: 1100px) {
    .sdlc-modern-container {
        flex-direction: column;
        gap: 20px;
    }

    .side-cards {
        width: 100%;
        order: 2; /* Move cards below orbit */
        align-items: center !important;
    }

    .central-visual, .sdlc-visual-container {
        order: 1; /* Move orbit to top */
        flex: none;
        height: 450px;
    }
    
    .sdlc-orbit {
        transform: scale(0.85); /* Shrink orbit slightly for tablets */
    }
}

@media (max-width: 480px) {
    .sdlc-orbit {
        transform: scale(0.7); /* Further shrink for small phones */
    }
    
    .sdlc-visual-container {
        height: 350px;
    }
}

/* --- CATEGORIZED TECH STACK --- */
.tech-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

.tech-group {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.tech-group:hover {
    border-color: var(--teal);
    background: rgba(45, 139, 125, 0.03);
}

.tech-group h4 {
    color: var(--teal);
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid var(--teal);
    padding-left: 15px;
}

.tech-items-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.tech-card i {
    font-size: 1.4rem;
    color: var(--white);
    opacity: 0.7;
}

.tech-card span {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.tech-card:hover {
    background: var(--teal);
}

.tech-card:hover i, 
.tech-card:hover span {
    color: var(--white);
    opacity: 1;
}

/* Specific adjustment for .NET Core icon if Devicon is not loaded */
.devicon-dotnetcore-plain::before {
    content: "\f13b"; /* Placeholder using FontAwesome shield if Devicon missing */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
