/* ==============================
   THE WAY WE WORK SECTION
   Exact replica from reference design,
   adapted to Ajkalporsu dark glassmorphic theme
   ============================== */

.way-we-work {
    padding: 100px 6%;
    position: relative;
    overflow: hidden;
}

/* ---- HEADER LAYOUT ---- */
.www-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 70px;
    position: relative;
}

/* Left: "The way" + description */
.www-title-left {
    flex: 0 0 280px;
}

.www-title-left h2 {
    font-family: 'Rustic Roadway', cursive;
    font-size: 64px;
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.www-desc {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    line-height: 1.7;
    max-width: 260px;
}

/* Center: Gear icon cluster */
.www-center-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: 10px;
}

.www-gear-big {
    font-size: 60px;
    color: var(--orange1);
    position: relative;
    z-index: 2;
    animation: gearSpin 12s linear infinite;
}

.www-gear-small {
    font-size: 32px;
    color: var(--orange1);
    opacity: 0.7;
    position: absolute;
    bottom: 2px;
    left: -8px;
    z-index: 3;
    animation: gearSpinReverse 8s linear infinite;
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gearSpinReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Right: "we work" */
.www-title-right {
    flex: 0 0 auto;
    text-align: right;
    align-self: flex-end;
}

.www-title-right h2 {
    font-size: 60px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.02em;
}

.www-title-right h2 em {
    font-style: italic;
    font-family: 'Rustic Roadway', cursive;
    font-weight: 400;
    font-size: 68px;
}

/* ---- CARDS GRID ---- */
.www-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Individual Card */
.www-card {
    position: relative;
    padding: 30px 25px 35px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.www-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 159, 10, 0.35);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* Card Top Row: Title + Arrow */
.www-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

.www-card-top h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.www-arrow-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.www-arrow-btn i {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.www-card:hover .www-arrow-btn {
    background: var(--orange1);
    border-color: var(--orange1);
}

.www-card:hover .www-arrow-btn i {
    color: #000;
    transform: rotate(-45deg);
}

/* Card Icon with Dashed Circle */
.www-icon-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.www-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.3s ease;
}

.www-card:hover .www-icon-circle {
    border-color: rgba(255, 159, 10, 0.3);
}

.www-icon-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.www-card:hover .www-icon-inner {
    background: rgba(255, 159, 10, 0.12);
    border-color: rgba(255, 159, 10, 0.3);
}

.www-icon-inner i {
    font-size: 24px;
    color: var(--orange1);
}

/* Service List */
.www-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.www-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.www-list li:last-child {
    border-bottom: none;
}

.www-list li:hover {
    color: rgba(255,255,255,0.95);
}

.www-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 159, 10, 0.12);
    border: 1px solid rgba(255, 159, 10, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--orange1);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.www-list li:hover .www-number {
    background: var(--orange1);
    color: #000;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .www-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .www-header {
        flex-wrap: wrap;
        gap: 30px;
    }
    .www-center-icon {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .way-we-work {
        padding: 60px 5%;
    }
    .www-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .www-title-left {
        flex: auto;
    }
    .www-title-left h2 {
        font-size: 42px;
    }
    .www-title-right h2 {
        font-size: 42px;
    }
    .www-title-right h2 em {
        font-size: 46px;
    }
    .www-title-right {
        text-align: left;
    }
    .www-center-icon {
        display: none;
    }
    .www-grid {
        grid-template-columns: 1fr;
    }
    .www-card-top h3 {
        font-size: 16px;
    }
}
