/* Buttons */
.btn-primary {
    background: var(--black);
    color: var(--light-gray);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 3px solid var(--black);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 12px 28px;
    border: 2px solid var(--black);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    margin-top: 60px;
    align-items: start;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 115px;
}

.service-arrow img {
    height: 30px;
    width: auto;
    opacity: 0.5;
}

.service-card {
    background: transparent;
    padding: 20px;
    border-radius: 12px;
    box-shadow: none;
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.service-icon {
    width: 200px;
    height: 230px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    position: relative;
}

.service-icon img {
    width: 230px;
    height: 130px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.service-card:last-child .service-icon {
    width: 200px;
    height: 230px;
    background: none;
}

.service-card:last-child .service-icon img {
    width: 163.5px;
    height: 163.5px;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: white;
    line-height: 1.2;
}

.service-card p {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: white;
    line-height: 1.8;
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Industry Items */
.industries-wrapper {
    margin-top: 60px;
}

.industries-list {
    display: grid;
    gap: 0px;
    margin-bottom: 0px;
}

.industries-list-top {
    grid-template-columns: repeat(3, 1fr);
    max-width: 808px;
    margin-left: auto;
    margin-right: auto;
}

.industries-list-bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 536px;
    margin-left: auto;
    margin-right: auto;
}

.industries-list-bottom {
    margin-bottom: 0;
}

.industry-item {
    background: transparent;
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
    color: white;
    transition: all 0.3s;
}

.industry-item:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.industry-icon {
    width: 204px;
    height: 204px;
    margin: 0 auto 0px;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: url('../images/elements/frame white rsn.svg') no-repeat center center;
    background-size: 100% 100%;
    position: relative;
}

.industry-icon img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.industry-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #373f47;
}

.industry-item p {
    font-family: 'Source Sans 3', sans-serif;
    color: #373f47;
    font-size: 15px;
    font-weight: 400;
}

/* Outcomes */
.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 0 12px 140px;
    background: transparent;
    border-radius: 8px;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: url('../images/elements/bullet rsn.svg') no-repeat center center;
    background-size: contain;
    border-radius: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-weight: bold;
}

.outcome-item p {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    color: white;
    font-size: 22px;
    line-height: 1.2;
    text-align: left;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: 0.90fr 0.97fr 0.97fr 1.1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-top: 140px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

#process .process-steps .step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

#process .process-steps .step:nth-child(5) {
    grid-column: 3;
    grid-row: 1;
}

#process .process-steps .step:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

#process .process-steps .step:nth-child(7) {
    grid-column: 4;
    grid-row: 2;
}

/* Arrows styling */
.step-arrow {
    width: 40px;
    height: 40px;
    background: url('../images/elements/arrows.svg') no-repeat center;
    background-size: contain;
    margin: 0 auto;
}

.step-arrow:nth-child(2) {  /* Arrow 1 - after Diagnose */
    grid-column: 1;
    grid-row: 2;
}

.step-arrow:nth-child(4) {  /* Arrow 2 - after Design */
    grid-column: 2;
    grid-row: 3;
}

.step-arrow:nth-child(6) {  /* Arrow 3 - after Implement */
    grid-column: 3;
    grid-row: 2;
}

.step-arrow:nth-child(8) {  /* Arrow 4 - after Optimize */
    grid-column: 4;
    grid-row: 1;
    transform: rotate(-90deg);
    align-self: end;
    margin-bottom: 10px;  /* Optional: add space from bottom edge */
}


.step {
    text-align: left;
    padding: 0;
    width: 100%;  /* Add this */
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--black);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;

    /* Rounded rectangle background - white with 75% opacity */
    background: rgba(255, 255, 255, 0.75);
    border-radius: 34px;

    /* Outer glow effect - matching SVG's #a9b5c0 color */
    box-shadow:
        0 0 8px rgba(169, 181, 192, 0.89),
        0 0 16px rgba(169, 181, 192, 0.6),
        0 0 24px rgba(169, 181, 192, 0.3);

    letter-spacing: 0.07em;
}

.step p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 18px;
    color: var(--gray);
    line-height: 1.2;
    text-align: justify;
    hyphens: auto;
    padding: 10px 0px;
}


/* Case Studies */
.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.case-card {
    background: #1c1f21;
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid var(--black);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),  /* Original shadow */
        0 0 20px rgba(255, 255, 255, 0.1),  /* Inner glow */
        0 0 40px rgba(255, 255, 255, 0.05); /* Outer glow */
}

.case-card h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
    color: #f5faff;
}

.case-card p {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    color: #f5faff;
    line-height: 1.7;
}

/* Testimonial Quote */
.testimonial {
    background: url('../images/elements/divide line.svg') no-repeat center bottom;
    background-size: calc(100% - 280px) auto;
    background-position: center calc(100% - 20px);
    padding: 60px 40px 80px 40px;
    border-radius: 16px;
    margin-top: 80px;
    position: relative;
}


.testimonial p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 24px;
    color: white;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-style: italic;
    padding-bottom: 30px;
}

/* Services Packages */
.packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    gap: 32px;
    margin-top: 60px;
    margin-left: auto;
    margin-right: auto;
}

.package {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
    display: flex;  /* Add this */
    flex-direction: column;  /* Add this */
}

.package:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.package h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 20px;
    padding-right: 40px;
    padding-left: 40px;
    color: var(--dark);
    line-height: 1.2;
}

.package .duration {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--black);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: auto;  /* Add this - pushes to bottom */
}

.package .deliverables {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--gray);
    margin-bottom: 20px;
    margin-top: 20px;
    line-height: 1.3;
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 60px auto 0;
    background: white;
    padding: 48px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    text-align: center;
    margin-top: 16px;
    color: var(--gray);
    font-size: 14px;
}
